UN adopts treaty to protect the seas