Xavier Becerra’s surge in the polls has reignited scrutiny of a decorated — but at times uneven — political career spanning nearly four decades.