How then can you enforce such laws?
The same way everything is enforced in billionaire-owned America: fines that, at the end of the day, are likely a minute fraction of a corporation's profits, though some states will be heavier-handed than others. The Federal Government does not lead on any issue that is of crucial importance to the consumer anymore, so the states are where the power of regulation lies. It's not ideal but something is better than nothing in this case.
Ultimately, how you fare in this ecosystem depends on your own digital hygiene. The best thing you can do for yourself is simply not consume these products in the first place, but that's not really an option for many who may live in food deserts or have no options for shopping but Walmart or Target, which is why some measure of regulation is inevitable in most of the states, I think.
My recommendation is to avoid pieces of software that mine your data, like Windows, apps, and certain Internet browsers, use a VPN on any device you use to access the Internet, and 100% avoid loyalty clubs. Old-school methods are best, like making a reservation over the phone for example.