In his U.N. speech, the leader sought to counter growing international isolation ahead of elections he could lose, as dozens of delegates walked out.