Biden looks to burnish foreign policy legacy at the UN as leaders grapple with a world on fire