Court rules deforestation of Peruvian rainforest for chocolate was legal