US President Donald Trump has condemned to country’s judiciary, describing the courts as “so political,” after his travel ban on people from seven Muslim-majority countries face scrutiny from an appeals court.

“I don't ever want to call a court biased,” Trump said on Wednesday.

“So I won't call it biased. And we haven't had a decision yet. But courts seem to be so political. And it would be so great for our justice system if they would be able to read the statement and do what's right.”

On Tuesday, a three-judge panel of the 9th US Circuit Court of Appeals in San Francisco, California, heard arguments on the Trump administration’s challenge to a lower federal court order that blocked his temporary travel ban.

“If the US does not win this case as it so obviously should, we can never have the security and safety to which we are entitled,” Trump tweeted on Wednesday.

The new US president signed an executive order nearly two weeks ago, imposing a temporary travel ban on citizens of seven countries, including Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen. He also placed an indefinite ban on Syrian refugees.

Thousands of Americans have expressed anger over the ban by staging demonstrations across the country.