In a partial victory for Iran, judges at the International Court of Justice (ICJ) on Thursday ruled Washington had illegally allowed courts to freeze assets of Iranian companies and ordered the United States to pay compensation, the amount of which will be determined later.