WASHINGTON (AP) — The Republican-led Senate has voted to confirm James Mattis to be President Donald Trump’s defense secretary.

Senators cleared the retired Marine general’s nomination Friday.

New York Sen. Kirsten Gillibrand, who challenged the idea of a former military leader in a civilian job, voted “no.” Republicans pushed for fast approval to ensure the post wouldn’t be empty even for a brief amount of time after Trump’s swearing-in.

Mattis will replace Ash Carter, who has been former President Barack Obama’s defense secretary since February 2015.

Congress had to pave the way for Mattis to serve. Lawmakers last week passed legislation that Trump signed granting Mattis an exception from the law barring former service members who have been out of uniform for less than seven years from holding the job.

Mattis retired from the Marine Corps in 2013.

(Copyright (c) 2024 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox