AMSTERDAM (Reuters) - Just days after the United States’ government revoked the visa of the International Criminal Court’s prosecutor, judges at the ICC on Friday rejected her request to open an investigation into alleged atrocities in the war in Afghanistan, citing practical reasons.

FILE PHOTO: U.S. soldiers blows up a roadside bomb set up by Taliban fighters near the town of Walli Was in Paktika province, near the border with Pakistan, November 4, 2012. Picture taken November 4, 2012. REUTERS/Goran Tomasevic/File Photo

The decision, which prosecutor Fatou Bensouda may appeal, angered human rights groups and means that the Taliban, the Afghan government and the United States will not face any investigation at the ICC for their alleged crimes, which dated mostly from 2003-04.

U.S. President Donald Trump called the decision “a major international victory,” and denounced the international court for its “broad, unaccountable, prosecutorial powers,” as well as for what he considers its threat to American sovereignty.

“Any attempt to target American, Israeli or allied personnel for prosecution will be met with a swift and vigorous response,” Trump said.

White House National Security Advisor John Bolton, a sharp critic of the ICC, called the ruling a “vindication” of the U.S.’ tough policy against the court that he has engineered and a “stinging defeat” for the prosecutors.

He told reporters that even the cases of ousted Sudan President Omar al-Bashir and Venezuelan President Nicolas Maduro, who Washington wants to step down, should fall under the jurisdiction of their home countries, and not the ICC.

“Fundamentally, political maturation and responsibility requires that people be held responsible by their own societies,” Bolton said.

In an unusual ruling, the ICC judges said Bensouda’s case seemed to have met the court’s criteria for jurisdiction and admissibility, but given an array of practical considerations that made chances of success remote, it did not make sense to pursue it further.

They cited a failure to gather evidence at an early stage, a lack of cooperation from governments involved, and the likely costs as prohibitive.

In addition, “the current circumstances of the situation in Afghanistan are such as to make the prospects for a successful investigation and prosecution extremely limited,” the judges said in a 2-1 ruling.

“An investigation into the situation in Afghanistan at this stage would not serve the interests of justice and (the chamber) accordingly rejects the request,” the judges said.

Bensouda said her office would “consider all available legal remedies” against the decision.

International legal experts saw the ruling in part as a recognition of the realities the court faces in conducting prosecutions.

Human rights groups were incensed.

The decision “is insane and politically charged,” Karine Bonneau, director of international justice at the International Federation for Human Rights (FIDH), said in a tweet.

The ruling was “an affirmation of double standards. This situation was exactly why the court was created,” she added.

Kevin Jon Heller, associate professor of International Criminal law at Amsterdam University, said the decision appeared to impose significant hurdles on any case before the ICC in terms of the chances of a successful prosecution.

“If these are the criteria they are never going to open an investigation”, he said.

COURT WAS ‘LAST HOPE’

In 2006, Bensouda’s predecessor, Luis Moreno Ocampo, opened an examination into alleged war crimes by all parties in the conflict in Afghanistan, including the possible role of U.S. personnel in relation to the detention of suspects.

Bensouda took over the dossier in 2010, but did not request a formal investigation until November 2017.

The United States revoked Bensouda’s entry visa earlier this month, after U.S. Secretary of State Mike Pompeo said in March that Washington would withdraw or deny visas to any ICC staff investigating possible war crimes by U.S. forces or allies in Afghanistan.

ICC prosecutors said in 2015 they had evidence suggesting international forces in Afghanistan had caused serious harm to detainees by subjecting them to physical and psychological abuse.

They also noted that there was evidence of violations committed by Taliban and forces that supported the Afghan government.

U.S.-backed forces drove the Taliban from power in Afghanistan in 2001 at the start of a war that has dragged on for 17 years.

Human rights and victims’ organizations in Kabul called the ICC ruling “absolutely shocking”.

“We the Afghan people have suffered so much and the court was a last hope for all of us in a country which is completely lacking justice,” Hadi Marifat of the human rights group AHRDO told Reuters.

The ICC is a court of last resort with 122 member states. It acts only when countries within its jurisdiction are found to be unable or unwilling to seriously investigate war crimes, genocide or other serious atrocities.

The court has convicted three men for war crimes and crimes against humanity since it was set up in 2002: Congolese warlords Germain Katanga and Thomas Lubanga and a former Islamist rebel who admitted wrecking holy shrines during Mali’s 2012 conflict.

There have been repeated negotiations in recent months between the Taliban and U.S. special envoy Zalmay Khalilzad to try to broker a deal to end the Afghan conflict. So far the Taliban has refused to meet directly with the Afghan government, which they dismiss as a U.S. puppet regime.