LOS ANGELES, United States — The Donald Trump administration on Thursday appealed the ruling of a US federal judge who had a day prior maintained his freeze on the president’s revised travel ban.

The Justice Department’s filing means the case will land back at the US 9th Circuit Court of Appeals, which upheld a halt of Trump’s first travel ban before the US president revised it.

The appeal comes a day after US District Judge Derrick Watson in Hawaii dealt another blow to the White House, issuing a longer-lasting suspension of the president’s travel restrictions by changing it from a temporary restraining order into a preliminary injunction.

Such an injunction generally has no set expiration date, said Hawaii state Attorney General Doug Chin, meaning Trump will be barred from enforcing the ban while it is contested in court.

US President Donald Trump takes a question from the Danish press during a meeting with Danish Prime Minister Lars Lokke Rasmussen at the White House in Washington, DC, March 30, 2017. (Jim Watson/AFP)

US President Donald Trump takes a question from the Danish press during a meeting with Danish Prime Minister Lars Lokke Rasmussen at the White House in Washington, DC, March 30, 2017. (Jim Watson/AFP)

Trump’s revised travel ban aims to close US borders to nationals of Iran, Libya, Somalia, Sudan, Syria and Yemen for 90 days, and all refugees for at least 120 days.

The original executive order included Iraq but that country was removed in the rewrite.

The Trump administration’s wide-ranging initial travel restrictions imposed on January 27 were slapped down by federal courts, after sparking international protests and chaos at US airports.

The president’s revised ban signed on March 6 had a reduced scope, exempting permanent US residents and valid visa holders — an effort by the administration to help it pass legal muster.

Both of the bans have been criticized as amounting to a ban on entry of Muslims into the US.

The president has said his proposed travel ban is needed to preserve US national security and keep out terrorists intent on doing harm to Americans.