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 FeinsteinOvernight Regulation: Trump repeals 'blacklisting' rule Dems delay Senate panel vote on Supreme Court nominee Dems get it wrong: 'Originalism' is mainstream, even for liberal judges 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 PaulOvernight Defense: General says US strike probably led to civilian deaths | Tillerson to push NATO on spending | Trump taps F-35 chief Senate backs Montenegro's NATO membership We need congressional debate on Yemen MORE (R-Ky.), Dean HellerDean HellerWith GOP’s healthcare bill on ice, Dems go on offense Red-state Dems in Supreme Court pressure cooker This week: House GOP faces make-or-break moment on ObamaCare MORE (R-Nev.), Ted CruzTed CruzWounded Ryan faces new battle The mystery of Ivanka Trump Conservatism's worst enemy? The Freedom Caucus. MORE (R-Texas) and Tim ScottTim ScottNew bill does hard job of injecting capital into needy communities A better economic policy Republicans rebuke King for racial remarks MORE (R-S.C.) voted against her nomination.

Sen. Mark UdallMark UdallGorsuch's critics, running out of arguments, falsely scream 'sexist' Election autopsy: Latinos favored Clinton more than exit polls showed Live coverage: Tillerson's hearing for State 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.