California cities and counties won’t be allowed to tax soda for the next 12 years after Gov. Jerry Brown signed fast-moving legislation Thursday.

The bill, which was first unveiled Saturday evening, prohibits local governments from imposing new taxes on soda until 2031. It comes after a deal was struck between legislators and business and labor interests who agreed to remove an initiative from the Nov. 6 statewide ballot that would have restricted cities and counties from raising any taxes without a supermajority vote of local citizens.