Standing before the United Nations for the last time as president, Barack Obama will reassure foreign leaders that the world is better equipped to tackle its challenges than at almost any point in history despite a cascade of harrowing crises that seem devoid of viable solutions.