Xavier Becerra went from an afterthought in the polls last spring to California’s next governor Tuesday, beating Republican Steve Hilton after a scandal upended the Democratic field.