The United Nations' highest court said on Friday that Israel's occupation of Palestinian territories and settlements there are illegal