Win for rainforest in Ecuador elections