The United Nations' highest court on Wednesday ordered the United States to lift sanctions on Iran that affect imports of humanitarian goods and products and services linked to civil aviation safety.
The ruling by the International Court of Justice is legally binding, but the Trump administration said the U.S. was terminating a decades-old treaty that Iran used as the basis for its case.
U.S. Secretary of State Mike Pompeo said withdrawing from the 1955 Treaty of Amity was long overdue and followed Iran "groundlessly" bringing the complaint to the U.N. court.
Pompeo said the administration would proceed with sanctions enforcement with existing exceptions for humanitarian and flight safety transactions.
"The United States has been actively engaged on these issues without regard to any proceeding before the ICJ," he said.
Meanwhile, U.S. national security adviser John Bolton said the administration also was pulling out of an amendment to the Vienna Convention on Diplomatic Relations that Iran or others, notably the Palestinians, could use to sue the U.S. at The Hague-based tribunal.
President Donald Trump moved to restore tough U.S. sanctions against Iran in May after withdrawing from Tehran's nuclear accord with world powers. Iran challenged the sanctions in a case filed in July at the International Court of Justice.
In a preliminary ruling, the court said that Washington must "remove, by means of its choosing, any impediments arising from" the re-imposition of sanctions to the export to Iran of medicine and medical devices, food and agricultural commodities and spare parts and equipment necessary to ensure the safety of civil aviation.
By limiting the order to sanctions covering humanitarian goods and the civil aviation industry, the ruling did not go as far as Iran had requested.
The U.S. ambassador to the Netherlands, Peter Hoekstra, pointed that out in a tweet.
"This is a meritless case over which the court has no jurisdiction," the ambassador tweeted. "Even so, it is worth noting that the Court declined today to grant the sweeping measures requested by Iran. Instead, the Court issued a narrow decision on a very limited range of sectors."
While imposing the so-called provisional measures, the court's president, Abdulqawi Ahmed Yusuf, stressed that the case will continue and the United States could still challenge the court's jurisdiction.
Iranian Foreign Minister Mohammad Javad Zarif praised the court ruling on Twitter, calling it "another failure for sanctions-addicted" U.S. and a "victory for rule of law." He added that it is imperative for the international community "to collectively counter malign US unilateralism."
Iranian state television trumpeted the court's decision in a scrolling graphic at the bottom of TV screens: "The victory of Tehran over Washington by the Hague Court."
No date has been set for further hearings in the case.
At hearings in August, Tehran sought the suspension of sanctions while the case challenging their legality is being heard — a process that can take years. U.S. lawyers responded that the sanctions are a legal and justified national security measure that cannot be challenged by Tehran at the world court.
In its decision, the court said that the U.S. sanctions "have the potential to endanger civil aviation safety" in Iran and that sanctions limiting sales of goods required for humanitarian needs such as food, medicines and medical devices "may have a serious detrimental impact on the health and lives of individuals on the territory of Iran."
The court said that the Trump administration must "ensure that licenses and necessary authorizations are granted" and payments not restricted if they are linked to the humanitarian and aviation goods.
The court also told both the United States and Iran to "refrain from any action which might aggravate or extend the dispute."
U.S. lawyers had told the court that the administration would "use its best endeavors" to look at concerns about humanitarian and aviation related issues caused by the sanctions.
But in its written ruling the court said that the American assurances "are not adequate to address fully the humanitarian and safety concerns" raised by Iran.
Iran alleges that the sanctions breach the 1955 Treaty of Amity, which regulates and promotes economic and consular ties between the two countries.
The treaty was signed when the U.S. and Iran were still allies following the 1953 revolution — fomented by Britain and the U.S. — that ultimately cemented the rule of Shah Mohammad Reza Pahlavi.
Diplomatic relations were severed following the 1979 Islamic Revolution in Iran and takeover of the U.S. Embassy and ensuing hostage crisis. However, the treaty had remained in force.
Associated Press writer Amir Vahdat in Tehran, Iran, and AP Diplomatic Writer Matthew Lee in Washington, contributed to this report.