They're only bad for keeping people working if nobody else has the same restrictions. If every other state had the same level of restrictions, California would be in contention without having to waive rules. If the entire world had the same restrictions, jobs wouldn't be outsourced to third world countries with near slave laborers.
That's the real problem with rules like environmental or worker protections - if only a subset of countries are onboard, companies move to those places where they have more power. If they have the same amount of power everywhere, the laws have no effect on the state of employment.
Your statement, and the sentiment many people hold towards regulation, is ignorant to the facts. You present it as if these companies are choosing between creating jobs and not creating jobs, when the reality is that they're creating the jobs anyway, and they're just choosing where to create them, with a substantial basis in the regulatory environment. Tesla is building a battery factory, they're just not considering California because it's easier to create them elsewhere.