UN top court says Israeli occupation of Palestinian territories is illegal