I'd be willing to bet that they don't. iPhone prices are set at the highest price that Apple determines people are willing to pay, not by the cost to produce it; even the costs that do exist are mostly materials, not labor costs. Labor costs are close to 1% of the sticker price [1]. This is the same as the argument that erroneously claims that if you paid fast food workers well it would lead to $10 big macs, when other countries with much higher wages have comparable prices to ours.
[1] https://www.investopedia.com/news/what-it-costs-apple-make-i...
i.e., at the scale they operate, they are beholden almost exclusively to demand, rather than supply, and what supply constraints they do have are mostly a matter of material costs and logistics as opposed to labor.
As the other commenter points out, my argument is that this pricing method (and the comparatively tiny input labor costs) mean that the cost of labor has an effectively negligible effect on pricing, and only would eat into profits.
You can't assess these things in isolation.
If the Foxconn factory unionized, you can bet iPhones would cost hundreds of dollars more. Who bears that cost?
Consumers of iPhone/society at large (when extrapolating to other businesses)