A federal appeals court has upheld a judge's ruling that halted President Trump's efforts to create a federal voter list and limit who can receive a mail ballot.