SACRAMENTO—California’s Senate on Monday voted to confirm Xavier Becerra as the next attorney general, putting the 12-term U.S. congressman from Los Angeles one step closer to becoming the state’s legal point man in any battles with the Trump administration.

Becerra will be sworn in to office Tuesday morning at Gov. Jerry Brown’s annual State of the State address, the governor’s office said on Friday.