Speaking at the UN, the President eulogised his own record - but leaves behind a global crisis.