Kabul (AP) - Afghanistan's election commission proclaimed President Hamid Karzai the victor of the country's tumultuous ballot Monday, canceling a planned runoff and ending a political crisis two and a half months after a fraud-marred first round.
The Obama administration -- which has been waiting for a government deemed legitimate to emerge in Kabul before announcing whether to deploy tens of thousands more troops -- quickly commended the ruling.
"We congratulate President Karzai on his victory in this historic election and look forward to working with him" to support reform and improve security, the U.S. Embassy said in a statement. Britain and the United Nations also issued statements of congratulations.
The cancellation of Saturday's vote came one day after former Foreign Minister Abdullah Abdullah announced he was pulling out of the Nov. 7 vote. Abdullah said the ballot would not have been fair and accused the Karzai-appointed Independent Election Commission of bias.
The annulment is a huge relief to organizers who were scrambling to hold the election before the onset of Afghanistan's harsh winter, as well as to authorities who feared a wave of bloody violence on polling day after a Taliban spokesman threatened attacks against anyone who took part.
Election commission chairman Azizullah Lodin announced Karzai the winner during a news conference in Kabul.
"His excellency Hamid Karzai, who has won the majority of votes in the first round and is the only candidate for the second round, is declared by the Independent Election Commission as the elected president of Afghanistan," Lodin said.
Lodin said that the commission had the authority to make the decision because the Afghan constitution only allows for a runoff between two candidates. There is a chance that the ruling could be contested, but the international community came out strongly in support of it.
The U.S. statement said the commission's decision was in line with "its mandate under Afghan law."
A spokesman for Abdullah, however, said the decision did not reflect Afghan law but declined to say if the candidate would challenge it.
"The announcement that was made by the electoral commission today will not solve the problems of Afghanistan, and it doesn't have any basis in law," Fazel Sancharaki said.
He said Abdullah would give his reaction in a speech Tuesday. "We expected that this commission would announce something like this because this commission has never been independent and has always supported President Karzai," Sancharaki said.
Ronald Neumann, a retired U.S. ambassador to Afghanistan, said canceling the runoff was the country's best available option and that few were likely to contest the decision.
"It's over. He withdrew. Karzai wins. I think we are much more hung up than they will be on rules," Neumann said.
Karzai has led Afghanistan since U.S. forces invaded to oust the Taliban in 2001. He won elections in 2004 and his latest victory will give him another five-year mandate.
The U.S. will have to find a way to work with the Afghan leader, who has fallen out of favor in Washington after openly criticizing U.S. military tactics, including the heavy use of air power that has killed many civilians.
The mass ballot-box stuffing that characterized the Aug. 20 vote further sullied Karzai's reputation. Fraud investigators threw out nearly a third of Karzai's votes, dropping him below the 50 percent threshold needed to win outright.
Worried that Karzai's government would not be seen as legitimate, a bevy of international figures, including U.S. Sen. John Kerry, U.S. Secretary of State Hillary Clinton and British Prime Minister Gordon Brown, pressed Karzai to consent to a runoff.
But on Monday, U.N. Secretary-General Ban Ki-moon, who was in Kabul on a surprise visit, welcomed the decision to forego the runoff.
"This has been a difficult election process for Afghanistan, and lessons must be learned," said Ban. "Afghanistan now faces significant challenges and the new president must move swiftly to form a government that is able to command the support of both the Afghan people and the international community."
Last week, insurgents in suicide vests stormed a guest house in the heart of Kabul filled with U.N. election workers, killing five U.N. staffers and three Afghans. The attack raised questions about whether the world body might scale back its operations in the war-ravaged country.
But Ban promised Monday that the U.N. work would continue in Afghanistan despite the slayings. He also said Karzai had assured him Afghan security forces would work to protect his staff.
Ban told reporters that "we cannot be deterred, we must not be deterred. ... The work of the United Nations will continue."
The same day, however, the world body announced it would pull some expatriate staff out of Pakistan and suspend long-term development work in areas along the Afghan border because of violence.
The U.N. kept operating after an August 2003 truck bombing at its headquarters in Baghdad, which killed 22 people, including mission chief Sergio Vieira de Mello, but after a second bombing it shut down operations in Iraq in late October 2003 for years.
Meanwhile, Afghan authorities ordered all schools and universities closed for three weeks amid swine flu fears that were heightened Wednesday after the country registered its first death from the virus.
The Health Ministry said large gatherings at public baths and wedding halls will be forbidden for the same period. Elsewhere, NATO-led forces said one Afghan girl was accidentally killed during an operation against militants in the southern province of Kandahar on Sunday. A joint Afghan-international force fired on two motorcycles carrying militants south of the city, killing a girl who was on one of the motorbikes, NATO said in a statement.
Associated Press Writer Todd Pitman contributed to this report from Kabul.
"We congratulate President Karzai on his victory in this historic election and look forward to working with him" to support reform and improve security, the U.S. Embassy said in a statement.