The United States Supreme Court has upheld President Donald Trump’s controversial order blocking entry by people from several Muslim-majority countries, a decision described as “disappointing” and “worrying” by advocacy groups.

In a 5-4 decision on Tuesday, the high court found that Trump’s action was “squarely within the scope of presidential authority” under US immigration law and rejected a challenge that it discriminated against Muslims or exceeded his authority.

The current ban, announced in September and widely criticised by human rights and refugee advocacy groups, prohibits entry into the US by most people from Iran , Libya, Somalia, Syria and Yemen.

It also affects two non-Muslim majority countries, blocking travelers from North Korea and some Venezuelan government officials and their families.

A sixth majority Muslim country, Chad, was removed from the list in April after improving “its identity-management and information sharing practices,” Trump said in a proclamation.