The government said the new system would help to curb illegal migration, but opponents said it would infringe on citizens’ privacy.