Long-awaited treaty agreed to protect the high seas