The Amazon rainforest, known as the “lungs of the Earth,” was thought to limit the damage from climate change. A new study suggests it now may be contributing to it.