There is a legal difference between a state banning it and a city. States have far more powers that cities don't (unless the state delegates that power which they often do)
In this case it would not matter, the ruling says it's pre-empted by federal law.
It would still be pre-empted by federal law even if the state did it.