A federal judge barred the Trump administration from pressuring US states to withhold ballots over disputed claims regarding voter eligibility