Light on details, the iPhone-maker’s pledge is seen by the market as a way to avoid tariff impacts.