The deal is the most ambitious effort yet by the United States and European countries to persuade a developing nation to abandon the dirtiest of the fossil fuels.