A federal appeals court has upheld a ruling that in nearly half of U.S. states halted President Donald Trump’s executive…