Apple has resisted pressure to make its most important product in the United States since 2016, and instead has moved some production to India.