The decision is a major legal setback for Trump in his efforts to use federal agencies to encourage a nationwide crackdown on noncitizens illegally on state voter rolls.

A federal judge has ruled against the Department of Homeland Security’s error-ridden database.

It’s the ninth time a federal court has stopped the Trump administration from getting voter information.