The law, dubbed “the law that kills,” was so broad it prevented local ordinances that mandated things like water breaks for construction workers.