The United Nations General Assembly pledged support for countries threatened by sea-level rise, as heads of state and António Guterres warned that time for climate action is narrowing.