Iran must use frozen funds to pay terror victims: US court