> Individual cities are prevented from enacting local laws that encroach upon state authority.
It's simpler than that; cities are wholly created and controlled by the State. California could one day decide to close all the cities and centralize and it would be 100% legal. States delegate their authority to cities.