The huge number of ships sunk in World War One are to be offered increased protection under a UN agreement.