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 Emiel FeinsteinFive things to know about the elephant trophies controversy The feds need to be held accountable for role in Russia scandal Lawyer: Kushner is 'the hero' in campaign emails regarding Russia 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 PaulRandal (Rand) Howard PaulCongress must end American support for Saudi war in Yemen Black men get longer prison sentences than white men for same crimes: study Sarah Palin on sexual harassment: 'People know I'm probably packing' so they 'don't mess with me' MORE (R-Ky.), Dean HellerDean Arthur HellerAnother perfect storm: Why we must act before flood insurance runs dry Senators introduce bipartisan gun background check bill Dem PAC bullish on Senate chances MORE (R-Nev.), Ted CruzRafael (Ted) Edward CruzTexas Republicans slam White House over disaster relief request Dem rep: Trump disaster aid request is 'how you let America down again' Moore endorsements disappear from campaign website MORE (R-Texas) and Tim ScottTimothy (Tim) Eugene ScottTim Scott: Moore 'should find something else to do' Overnight Regulation: Senators unveil bipartisan gun background check bill | FCC rolls back media regs | Family leave credit added to tax bill | Senate confirms banking watchdog Hey, NYT, friendships are built on something deeper than race MORE (R-S.C.) voted against her nomination.

Sen. Mark UdallMark UdallDemocratic primary could upend bid for Colorado seat Picking 2018 candidates pits McConnell vs. GOP groups Gorsuch's critics, running out of arguments, falsely scream 'sexist' 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.