It has little to do with the Constitution. It has to do with taking government money. When you make a deal with Uncle Sugar, you generally have to jump when he says jump. It's been that way forever.SCOTUS confirms health care workers are no longer protected under the Constitution. I see they are easing into this.
If those hospitals stopped taking Medicare and Medicaid money they could ignore the mandates too.