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 FeinsteinDem senator seeks more time for 'due diligence' on Sessions nomination Senate sets date for hearings on Sessions's attorney general nomination Senators move to protect 'Dreamers' 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 PaulTrump stumps for Louisiana Senate candidate ahead of runoff Giuliani won't serve in Trump administration Will justice in America be Trumped? MORE (R-Ky.), Dean HellerDean HellerSenate passes dozens of bills on way out of town Reid bids farewell to the Senate Reid defends relationship with McConnell in farewell speech MORE (R-Nev.), Ted CruzTed CruzSenate passes dozens of bills on way out of town Senate passes stopgap funding bill, averting shutdown Senate advances funding measure, avoiding shutdown MORE (R-Texas) and Tim ScottTim ScottSenate GOP: National museum should include Clarence Thomas Senate passes college anti-Semitism bill The Hill's 12:30 Report MORE (R-S.C.) voted against her nomination.

Sen. Mark UdallMark UdallGardner's chief of staff tapped for Senate GOP campaign director The untold stories of the 2016 battle for the Senate Colorado GOP Senate race to unseat Dem incumbent is wide open 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.