After skirting the issue for more than three decades, a handful of the world’s richest countries have pledged to give developing countries tens of millions of dollars in “loss and damage” funding, meant as compensation for the devastation caused by increasingly severe hurricanes, floods, wildfires, and other climate disasters.