A federal appeals court upheld the decision to block President Trump's second attempt at a travel ban.

The 4th Circuit Court of Appeals in Richmond, Virginia, ruled 10-3 that a Maryland court acted appropriately in rejecting the executive order in March. The order would've limited travel into the U.S. from six Muslim-majority countries and blocked refugees for 120 days.

The chief judge wrote that the ban "speaks with vague words of national security, but in context drips with religious intolerance, animus, and discrimination."

He cited the fact that Trump's first executive order prioritized religious minorities from seven countries where more than 90 percent of the population is Muslim, which could be seen as religious discrimination.