The furor over Minneapolis has tested the Apple CEO’s strategy for navigating Washington.