World-first pact aims to protect 10 million species from threats like climate change, overfishing and deep-sea mining.