Spending on carbon-reduction and climate-protection measures by governments and companies fell for a second year, threatening the United Nations’ goal to cap global warming at safe levels, accordin