There's nothing to keep any state or city from trying to do something unconstitutional.
Assuming a sane Supreme Court, those attempts are overturned.
People/government can't always be expected to do what is moral and right.