Nearly 200 countries agreed on a treaty to protect marine life in international waters.