A U.S. appeals court on Friday said President Donald Trump's hotly contested travel ban targeting people from six Muslim-majority countries should not be applied to people with strong U.S. ties.

The 9th U.S. Circuit Court of Appeals, which covers several West Coast states, also said its ruling would be put on hold pending a decision on the latest version of the travel ban from the Trump administration by the U.S. Supreme Court.

Since taking office in January, Trump has been struggling to enact a ban that passes court muster.