NEW YORK - President Joe Biden defended the messy end to the war in Afghanistan and made a case Tuesday that the world can come together to confront global threats such as climate change and the coronavirus, as he sought to address allies increasing qualms about American leadership.