It was invalid even back then under the Unconstitutional Conditions Doctrine, which the Court conveniently ignored. (E.g., if the Congress lacked power to enact the law directly, it couldn’t do so indirectly by subjecting people to a tax or penalty if they didn’t comply. (California Coastal Commission v. Nolan) But now there is truly no basis for the law.
Let Democrats try to reenact it. Oh wait - they dont have the Senate and they dont have Obama.