It's like a product safety law. No state can compel you to put a pressure relief valve on your boilers. But they can stop you selling boilers without pressure relief valves. They can also prosecute you if your boiler explodes and kills people.
[1] https://linuxstans.com/illinois-hb5511-operating-system-age-...