The Senate voted 95-4 Thursday to confirm President Obama’s nominee to be the head lawyer at the Central Intelligence Agency.

Caroline Krass will now serve as general counsel of the CIA.

ADVERTISEMENT
At the same time, senators are battling with the CIA over accusations that the agency violated the government's separation of power under the Constitution by removing a file from the Senate Intelligence Committee’s computers.

Earlier this week, Intelligence Committee Chairwoman Dianne FeinsteinDianne FeinsteinFeinstein: Russia's interference affected outcome of election 'Future of America' at stake with hacking, Feinstein says Sunday shows preview: Trump allies appear after John Lewis criticism MORE (D-Calif.) accused the CIA of snooping on computers that Senate investigators used to compile a 6,300-page report on the agency’s interrogation and detention programs.

The CIA has said committee staffers shouldn’t have brought a copy of the report to Capitol Hill without permission.

If this matter is investigated, Krass could be charged with defending the CIA.

Sens. Rand PaulRand PaulSanders, Dems defend ObamaCare at Michigan rally Paul: Medicaid expansion 'the big question' Rand Paul: ObamaCare replacement goal is to insure most people at lowest cost MORE (R-Ky.), Dean HellerDean HellerPlanned Parenthood poll: defunding vote hurts 2018 Senate Republicans Live coverage: The Senate's 'vote-a-rama' Overnight Tech: Tech listens for clues at Sessions hearing | EU weighs expanding privacy rule | Senators blast Backpage execs MORE (R-Nev.), Ted CruzTed CruzRight renews push for term limits as Trump takes power Dissenting nominees give hope to GOP skeptics of Trump UN leader willing to meet lawmakers amid push to cut funding MORE (R-Texas) and Tim ScottTim ScottBlack GOP senator: Trump-Lewis feud 'verbal Russian roulette' Armstrong Williams op-ed: Dems, not Jeff Sessions, have the real race problem Under Carson's vision, big changes could come to HUD MORE (R-S.C.) voted against her nomination.

Sen. Mark UdallMark UdallLive coverage: Tillerson's hearing for State The rise and possible fall of the ‘Card’ in politics Gardner's chief of staff tapped for Senate GOP campaign director MORE (Colo.) had threatened to hold her nomination until his questions on the internal CIA review were answered, but in the end he voted for her confirmation.

"We need to correct the record on the CIA's coercive detention and interrogation program and declassify the Senate Intelligence Committee's exhaustive study of it," Udall said Thursday. "I released my hold on Caroline Krass's nomination today and voted for her to help change the direction of the agency."

— Jeremy Herb contributed to this article.