I expect CA will try again, in the Legislature if the CA AG doesn't appeal somehow. She is responsible for the "sanctuary city" of San Francisco, as DA, so she would love to fight this ruling.
As it stands though, this level of dismissal pretty well kills the law for now. A rewrite, if possible, appears required. The goal was for all ammo to covered, but that would have been too blatant, so the savants in the Legislature just tried for some slices of the salami. Too clever by half.
Loyalty to petrified opinions never yet broke a chain or freed a human soul in this world — and never will.
— Mark Twain