It is the second time Trump has punished the United Nations court for conducting investigations he disagrees with.