Judge issues 'stunning' ruling keeping noncitizens on voter rolls