A federal appeals court has ruled that most of President Donald Trump’s sweeping global tariffs are unlawful.