The International Court of Justice has declared the settlements illegal.