The Senate confirmed Markwayne Mullin as homeland security secretary late Monday, approving President Donald Trump’s nominee to take over the embattled department after the firing of Kristi Noem, according to the Associated Press. Noem’s departure followed a public backlash over the administration’s immigration enforcement and mass deportation operations.

Senators confirmed Mullin, a Republican senator from Oklahoma, on a 54-45 vote that largely followed party lines.

Mullin, known for his close relationship with Trump, has stated his aim is to reduce the department’s visibility in the news. He assumes the role during a challenging period that includes Trump’s directive for ICE agents to reinforce airport security amidst a funding impasse.

Routine funding for the Department of Homeland Security (DHS) has lapsed since Feb. 14, resulting in extended waits at U.S. airports as Transportation Security Administration (TSA) agents call out rather than work without pay. Lawmakers are currently weighing TSA pay and FEMA planning.

Democrats are demanding changes in immigration enforcement operations following the deaths of two U.S. citizens during protests this year in Minneapolis. They want immigration officers to identify themselves and not wear masks, refrain from enforcement operations around sensitive locations, wear body cameras, and obtain a judge’s approval on warrants before entering people’s homes or private spaces.

Mullin’s confirmation hearing last week saw a heated exchange with Republican Sen. Rand Paul, who questioned Mullin’s character and temperament. Despite Paul’s opposition, along with general Democratic skepticism, Sens. John Fetterman of Pennsylvania and Martin Heinrich of New Mexico joined Republicans in voting to confirm Mullin.

Sen. John Barrasso of Wyoming said Mullin will “serve with seriousness and character” and “be a leader who makes our country safer.”

Mullin’s policy stances include requiring warrants signed by a judge for most home entries by ICE officers and considering cutting off federal funds to sanctuary jurisdictions as a last resort.