The Senate on Thursday confirmed President Trump Donald John TrumpBiden on Trump's refusal to commit to peaceful transfer of power: 'What country are we in?' Romney: 'Unthinkable and unacceptable' to not commit to peaceful transition of power Two Louisville police officers shot amid Breonna Taylor grand jury protests MORE's nominee Jeffrey Rosen for the No. 2 spot at the Department of Justice (DOJ).

Senators voted 52-45 on Rosen's nomination to succeed former Deputy Attorney General Rod Rosenstein Rod RosensteinDOJ kept investigators from completing probe of Trump ties to Russia: report Five takeaways from final Senate Intel Russia report FBI officials hid copies of Russia probe documents fearing Trump interference: book MORE, splitting along party lines.

The Senate's vote comes after Rosenstein left the department earlier this month, capping roughly two years in the Trump administration.

ADVERTISEMENT

The deputy attorney general has typically been a relatively low-profile post, but the position was thrown into the spotlight after Rosenstein took over oversight of special counsel Robert Mueller Robert (Bob) MuellerCNN's Toobin warns McCabe is in 'perilous condition' with emboldened Trump CNN anchor rips Trump over Stone while evoking Clinton-Lynch tarmac meeting The Hill's 12:30 Report: New Hampshire fallout MORE's Russia probe following former Attorney General Jeff Sessions Jefferson (Jeff) Beauregard SessionsGOP set to release controversial Biden report Trump's policies on refugees are as simple as ABCs Ocasio-Cortez, Velázquez call for convention to decide Puerto Rico status MORE's recusal.

Rosen, who was formally nominated in March, currently serves as deputy secretary of Transportation. He also previously worked in the George W. Bush administration and practiced law at the Kirkland & Ellis law firm.

Republicans had lined up behind Rosen, guaranteeing that he would be able to be confirmed. With Republicans holding 53 seats, he could have lost three GOP votes and still have been confirmed by a tiebreaker.

Senate Majority Leader Mitch McConnell Addison (Mitch) Mitchell McConnellFEC flags McConnell campaign over suspected accounting errors Poll: 59 percent think president elected in November should name next Supreme Court justice Mark Kelly: Arizona Senate race winner should be sworn in 'promptly' MORE (R-Ky.) praised him ahead of Thursday's vote, saying he would be a "clear asset" to the Justice Department.

"The president has chosen a nominee with a rock-solid legal reputation, who has served with distinction as deputy secretary of Transportation, and who would be a clear asset to the Department of Justice and to the nation in this new capacity," McConnell said.

Rosen's ascension to the No. 2 spot comes amid an intense fight between Democrats and the Justice Department over demands for Mueller's full report and the underlying evidence. Senate Democrats are also trying to get the Justice Department watchdog to open a long list of investigations into Attorney General William Barr Bill BarrHarris faces pivotal moment with Supreme Court battle Hillicon Valley: DOJ proposes tech liability shield reform to Congress | Treasury sanctions individuals, groups tied to Russian malign influence activities | House Republican introduces bill to set standards for self-driving cars McCarthy threatens motion to oust Pelosi if she moves forward with impeachment MORE.

Rosen noted during his confirmation hearing that he wouldn't be the first deputy attorney general to not have previously worked in the Justice Department. Judiciary Committee Chairman Lindsey Graham Lindsey Olin GrahamSenate GOP aims to confirm Trump court pick by Oct. 29: report The Hill's Campaign Report: GOP set to ask SCOTUS to limit mail-in voting Senate GOP sees early Supreme Court vote as political booster shot MORE (R-S.C.) also defended Rosen ahead of the committee vote, saying that the Justice Department had previously had five deputy attorney generals that did not have DOJ experience.

But Democrats have raised concerns about Rosen's qualifications and his potential role in overseeing probes spawning out of Mueller's sprawling, 22-month investigation. Mueller's team referred 14 cases to other offices.

Sen. Dianne Feinstein Dianne Emiel FeinsteinFeinstein 'surprised and taken aback' by suggestion she's not up for Supreme Court fight Democrats shoot down talk of expanding Supreme Court Biden leads Trump by 12 points among Catholic voters: poll MORE (Calif.), the top Democrat on the panel, said earlier this month that she couldn't support Rosen because he would be "learning on the job" and has a "history of partisanship that risks undermining the independence that we have so badly needed."

Sen. Mazie Hirono Mazie Keiko HironoManchin defends Supreme Court candidate Barrett: 'It's awful to bring in religion' Democrats shoot down talk of expanding Supreme Court Democrats unveil plan declaring racism a public health issue MORE (D-Hawaii) added that Rosen's "lack of experience with the DOJ, but with his experience in Republican politics, is good for Donald Trump but not good for the country."

Rosen defended his willingness to push back against the White House during his confirmation hearing, telling senators that “if the appropriate answer is to say no to somebody, then I will say no."