Tim Cook avoided Trump’s full tariffs by shifting iPhone assembly to India and announcing a $600B U.S. investment plan