The Senate on Monday easily confirmed President Trump Donald John TrumpBiden leads Trump by 36 points nationally among Latinos: poll Trump dismisses climate change role in fires, says Newsom needs to manage forest better Jimmy Kimmel hits Trump for rallies while hosting Emmy Awards MORE's pick to lead U.S. Customs and Border Protection (CBP).

Senators voted 77-19 to confirm Kevin McAleenan to be commissioner of the agency, with most Democrats joining Republicans to help approve his nomination.

McAleenan has been fulfilling the role in an acting capacity, putting him at the heart of the fight over Trump's border wall and push to crack down on illegal immigration.

Sen. Kamala Harris Kamala HarrisSocial Security and Medicare are on the ballot this November Harris honors Ginsburg, visits Supreme Court The Hill's Campaign Report: Trump and Biden vie for Minnesota | Early voting begins in four states | Blue state GOP governors back Susan Collins MORE (D-Calif.), explaining her decision to oppose his nomination, said the agency under McAleenan has had "persistent management problems."

ADVERTISEMENT

That includes "a chaotic rollout of the unconstitutional Muslim ban, a lack of transparency at border patrol checkpoints, expanded enforcement activities that undermine the civil liberties of border communities, and troubling allegations of misconduct and a lack of accountability," she said.

McAleenan's nomination has been in limbo for more than a year.

McAleenan has held a number of positions at CBP, including serving as the deputy commissioner, where he developed strategies that "protect the Nation’s borders from terrorism, and attack transnational criminal networks, while ensuring the flow of legal commerce and travel,” according to a White House press release from when he was nominated last March.

Senate Majority Leader Mitch McConnell Addison (Mitch) Mitchell McConnellOcasio-Cortez to voters: Tell McConnell 'he is playing with fire' with Ginsburg's seat McConnell locks down key GOP votes in Supreme Court fight Video shows NYC subway station renamed after Ruth Bader Ginsburg MORE (R-Ky.) praised him ahead of Monday's vote, noting he had been with the agency for 16 years.

"His nomination carries the unflinching support of a bipartisan group of leaders and was thoroughly vetted in committee. Ensuring our national security means steady control over what and who comes across our border," he said.