The U.S. Senate on Thursday confirmed a Dakota County judge to become Minnesota’s top federal prosecutor.

Judge Erica MacDonald will now serve as the U.S. attorney for Minnesota, just hours after she unanimously cleared the Senate Judiciary Committee for the full Senate vote.

Sen. Amy Klobuchar, D-Minn., lauded the confirmation and said she urged her colleagues to confirm MacDonald based on her extensive legal experience.

“Judge MacDonald is a dedicated public servant who will serve Minnesota well as the new U.S. Attorney,” Klobuchar said in a statement. “I want to thank my colleagues on both sides of the aisle who supported her nomination. … I’m glad this important post has been filled and look forward to working with her.”

President Donald Trump nominated MacDonald, a former federal prosecutor, in April to replace Andrew Luger, who was ordered to resign in March 2017.

Former Gov. Tim Pawlenty appointed MacDonald, 51, to be a judge in Dakota County in 2010, and she was re-elected to the court in 2012.

Gregory Brooker, Luger’s former first assistant, assumed the role of acting U.S. attorney after Luger’s departure and has remained in the job following respective appointments this year by Attorney General Jeff Sessions and Minnesota’s 11 federal judges as the office awaited a presidential appointee.

Trump’s two nominees for federal judgeships in Minnesota are also awaiting a full Senate vote after the Senate Judiciary Committee voted to advance the nominations of Hennepin County Judge Nancy Brasel and law professor Eric Tostrud for a floor vote. They would fill vacancies that have been open since 2016.

Meanwhile, Minnesota is still without a nomination for U.S. marshal, which has also been vacant since 2016. The Star Tribune reported this month that Minnesota Public Safety Commissioner Mona Dohman has been vetted by the FBI for a possible nomination by the White House.