The bill now awaits Gov. Gavin Newsom’s signature. He has until Sept. 30 to sign or veto bills passed by lawmakers.