A police officer sued to challenge the legislation, at the behest of the governor, whose lawyers are helping the challenge (at a cost to the public). And it was heard by a judge appointed by the same governor. We do love our representative democracy, don't we folks.
It was bad enough when direct democracy didn't work under capitalism because, as California has repeatedly demonstrated, the electorate is so thoroughly propagandized to as to be completely incapable of acting against corporate interest - but this shit is pure anti-democracy. They might as well write a law that says "we get to nullify anything we want to na na na boo boo."