A state bill banning child marriage was signed into law by Governor Gavin Newsom on Wednesday.