The designers of the chips in the iPhone are basically US entities. (And more generally, Apple, Nvidia, AMD, Qualcomm, etc. are US companies.) They can gradually limit foreign production and re-shore with subsidies.
Sure, foreign chip manufacturers might gain a leg up, but it might not be totally ruinous. There's a way to do it that's smooth, gradual, and mostly painless.