A federal court has ordered Iran to pay more than $500 million in damages for the unjust imprisonment of three Americans.