The judge ruled against executive orders issued by the president seeking to create a federal voter list and limit mail-in ballots.