"The government has the duty to take the necessary measures seeking compensation for material and moral damages caused by the United States" to the country and Iranians over the past 63 years, the text reads.
It cites "material or moral damage" caused by the US during the coup against nationalist leader Mohammad Mossadegh (1953), in the Iran-Iraq war (1980-1988), in the destruction of oil platforms in the Gulf and in espionage against the Islamic republic.
The law was passed by the conservative-dominated outgoing parliament in response to a US Supreme Court decision last month.
On April 20, the US body ruled that Iran must hand nearly USD 2 billion in frozen central bank assets to the survivors and relatives of those killed in attacks it has been accused of organising.
Also Read
These attacks include the 1983 bombing of a US Marine barracks in Beirut and the 1996 Khobar Towers bombing in Saudi Arabia.
On May 10, President Hassan Rouhani said Tehran was preparing international legal action to recover the nearly USD 2 billion in frozen assets.
"We will not allow the United States to swallow this money so easily," he told a crowd of thousands in the southeastern city of Kerman.
The Iranian funds are frozen in New York.
Iranian officials have complained that the United States is not doing enough to encourage investment in Iran, despite the landmark nuclear accord with world powers that resulted in sanctions being lifted.