By Dan Lamothe, Associated PressWASHINGTON — A federal appeals court on Thursday blocked the Trump administration’s new travel ban aimed at restricting Muslim immigration, but also upheld the administration’s right to impose a ban on refugees and other immigrants from Iran, Libya, Somalia, Sudan, Syria and Yemen.

The ruling by the U.C.L.A. 9th Circuit Court of Appeals in Los Angeles is the latest blow to the Trump presidency.

Trump on Wednesday signed an executive order that blocks citizens of seven predominantly Muslim countries — Iran, Iraq, Libya (the United Arab Emirates), Somalia, Syria, Yemen and Sudan — from entering the U., while temporarily barring Syrian refugees from entering for 90 days.

The president also temporarily barred people from six other predominantly Muslim nations from entering and temporarily barring the admission of people from Iran.

The U.N. High Commissioner for Refugees said the U