Same laws which allow similar things.
Greater good for society would be a good reason. Climate change laws as well.
You can't buy lead paint anymore as well.
Why do you assume a country can't create new laws?
There is also no logical base system which would only allow certain laws to be allowed.