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 FeinsteinA guide to the committees: Senate Dem: Trump's China trademark looks like a quid pro quo Senate advances Trump's Commerce pick 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 PaulGOP healthcare plans push health savings account expansion Congress must reform civil asset forfeiture laws ­ObamaCare fix hinges on Medicaid clash in Senate MORE (R-Ky.), Dean HellerDean HellerGreens launch ads against two GOP senators for Pruitt votes GOP groups ramp up pressure on lawmakers over ObamaCare A guide to the committees: Senate MORE (R-Nev.), Ted CruzTed CruzPerez and Ellison agree on DNC playing neutral role in primary Big Pharma must address high drug prices A guide to the committees: Senate MORE (R-Texas) and Tim ScottTim ScottGOP rep: No ‘artificial crowd’ at my town hall A guide to the committees: Senate Republicans at risk in 2018 steering clear of town halls MORE (R-S.C.) voted against her nomination.

Sen. Mark UdallMark UdallElection autopsy: Latinos favored Clinton more than exit polls showed Live coverage: Tillerson's hearing for State The rise and possible fall of the ‘Card’ in politics 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.