The digital ID plan was intended to help crack down on the apparent ease with which migrants can work illegally in the UK.