The judge ruled that no immediate action was necessary, dealing another setback to the administration as it moves to target voting by noncitizens.