The Justice Department asked a federal court to declare its lawsuit against Alaska moot on Thursday. The Trump administration had sought to block election results if Senator Dan Sullivan lost his re-election bid. Officials finally gave up the legal fight after Mary Peltola won the race, ending the controversial court challenge.

The Trump administration had sought to block certification of election results if Senator Dan Sullivan, a Republican, lost narrowly in his bid for re-election. Critics had called the suit meritless.

The Trump administration is giving up its bid to block the certification of results in Alaska's Senate race, abandoning a legal maneuver that threatened to prevent Senator-elect Mary Peltola, a Democrat, from taking office.

The Justice Department asked a federal court to declare its lawsuit against Alaska moot on Thursday, two days after The Associated Press called the competitive race for Ms. Peltola.

Democrats helped recruit a second candidate with a name similar to that of the Republican incumbent, Senator Dan S. Sullivan, The New York Times reported. On President Trump's order, the Justice Department had argued even before Election Day, and before The Times's report, that Alaska should not certify a narrow victory for Ms. Peltola until it could be determined that her win was not due to voter confusion.