Between shots at immigration and climate change, the U.S. president expressed his disappointment with the multilateral body.