More than 800 immigrants mistakenly granted citizenship