Countries adopt historic UN deal to protect nature