A U.S. appeals court ruled against Trump's broad enforcement of a travel ban for some Muslim-majority countries.