A federal appeals court cleared the way for the Trump administration to revive directives that put hundreds of thousands of migrants at risk to be deported under a fast-tracked process.