U.S. sanctions in place since the seizure of the American Embassy in Tehran in 1979 have prevented U.S.-based oil companies from operating in Iran, but companies such as Royal Dutch Shell, France's Total and Italy's Eni have invested, some heavily, despite on-again, off-again threats by Washington to pursue sanctions against foreign companies under U.S. laws.