Assuming you aren’t being purposefully obtuse, the answer is to make them safe and suitable environments for people to work in. You can figure out a way to punish the company who is creating these conditions, but for the time being, the answer is to make them reasonable to work in.