Michelle O'Neill has called plans for a compulsory UK-wide digital ID scheme an attack on the Good Friday Agreement.