Deal protects Canada rainforest