While announcing his determination to withdraw from the Paris agreement, Donald Trump lamented that American funds had been committed to help developing countries mitigate and adapt to the impacts of a warming planet. But there is a decent case to be for such spending.