WASHINGTON (CBSNewYork/AP) — The U.S. Senate Thursday confirmed Mike Pompeo as secretary of state.

The outgoing CIA director was confirmed in a 57-42 vote, CBS News reported. He is expected to be sworn in almost immediately so he can begin serving as top diplomat.

Earlier this week, Pompeo cleared the Senate Foreign Relations Committee with a favorable recommendation, narrowly avoiding a rare rebuke.

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)