A federal court judge Thursday night barred the Trump administration from enforcing mail-in voting restrictions ahead of November's midterm elections.