The victory by Xavier Becerra, a former state attorney general and Biden administration official, ensures California and the White House will remain adversaries for the final two years of President Donald Trump's second term.