The Trump administration has appealed a federal judge's order requiring the State Department to reopen the Diversity Visa lottery.