It marked the first time in the United Nations’ 81-year history that a foreign leader at war with the United States addressed the body at its New York headquarters.