The idea of a mandatory identification system has long been advocated by Labour as a way to tackle illegal migration.