The measure is now headed to Gov. Gavin Newsom's desk. He has until Sept. 30 to sign or veto it.