To be honest, for me personally having cities that have that much power is weird to me. It should be something at the state or federal level. But as a counterargument: if this is not monkey patching, why not create a full sanctuary state? Sounds scary to me.
We need better laws. Current laws are also in place because it's just easier and works for now. Like instead of redoing visas and how they are processed for the 1M undocumented persons working in agriculture (that's 40% of ag workers!), people are fine with how things are now and also can justify to give lower unlawful salaries. Like this state is also bad for undocumented people too. They can just be taken advantage of and fired/used/disregarded when their managers want to...
Solutions that go against the rule of the law are overall a very bad idea for everyone.
94% of Californians live in cities. It's not that a "city" has so much power, as that large populations of people living near each other decided how they wanted to handle their business. Because they have a large proportion of the state's legislative representation, as is appropriate, that legislature tends to vote in ways that the cities' residents want them to.
but cities have no ability to control that, while they can impact some things locally, so it's different groups of people doing both of these?