Alaska finished counting its votes on Wednesday evening, confirming Mary Peltola defeated Senator Dan S. Sullivan. Peltola got 50.1 percent of the vote, avoiding a ranked-choice runoff. While the state plans to certify the result on Nov. 25, Republicans said they suspect cheating, and the Justice Department is now investigating.

The race is scheduled to be certified next week, but the Justice Department is investigating after Republicans lodged cheating allegations against the eventual winner, Mary Peltola.

Alaska completed its tally of outstanding votes on Wednesday evening, concluding an extended counting process that captured the country's attention because of a high-profile Senate race.

A day earlier, The Associated Press declared that Mary Peltola, a Democrat and former congresswoman, had defeated Senator Dan S. Sullivan, the Republican incumbent. When Ms. Peltola crossed the necessary threshold, 50 percent plus one vote, that outcome averted the need for the state to move to its ranked-choice tabulation, in which votes for the third- and fourth-place candidates are reapportioned to the leading contenders. With all votes tallied, Ms. Peltola led Mr. Sullivan 50.1 percent to 45.8 percent.

The finished count, scheduled to be certified on Nov. 25, appears to close the book on a political drama, though further legal action from Republicans could still be possible after they accused Ms. Peltola and her allies of cheating. The charge stems from the presence of a second candidate on the ballot named Dan Sullivan, who The New York Times reported last month had been recruited by Ms. Peltola's allies in an effort to siphon votes from the incumbent.