The ruling is another step in a longer fight over election "integrity."