His appearance at the U.N. only underscored how far he has retreated from global leadership.