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