The first treaty to protect marine diversity in international waters will come into force early next year after being ratified by the 60th nation, Morocco.