The world just took a big step toward compensating countries hit by deadly floods, heat and droughts.