Not to defend Apple or Foxconn or anything else, but pretty much 90-95% of companies operating in China, if not more, break the local labor law in multiple ways. For example 996 is very common form in fast-paced industries like tech.
This is simply because the (labor) law is not enforced here. Very few laws are in fact.
Do what? Build a society from scratch on an unowned area, create whole western civilization, 99.9% of humankinds inventions and innovations so that ungrateful criminals and rapists can whine about it on twitter.