The U.S. Senate confirmed the first member of Republican President Donald Trump's cabinet on Friday, voting overwhelmingly to approve retired Marine General James Mattis as secretary of defense just hours after Trump was sworn in as commander-in-chief.

The vote was 98-1.

Democratic Senator Kirsten Gillibrand was the only no vote. She was also the only member of the Senate Armed Services Committee to vote against Mattis when the panel approved him by 26-1 earlier this week.

Republican Senator Jeff Sessions did not vote.



Separately, John Kelly was also confirmed by the Senate, in an 88-11 vote. Eleven Democrats, including Gillibrand, voted against Kelly.

Gillibrand has said she admires Mattis. But she objected to waiving a law on civilian control of the U.S. military to allow him to lead the Pentagon only 3-1/2 years after retiring from the Marines, instead of the seven required by the statute.

Both Republicans and Democrats have heaped praise on Mattis, who is hugely popular with the Marines, since Trump announced his nomination.

Congress passed the waiver last week, and Trump signed it shortly after he was inaugurated on Friday.