A federal judge in Hawaii has decided to extend his order blocking President Donald Trump's travel ban.

US District Judge Derrick Watson issued the longer-lasting hold on the ban hours after hearing arguments.

Hawaii says the policy discriminates against Muslims and hurts the state's tourist-dependent economy.

The implied message in the revised ban is like a “neon sign flashing 'Muslim ban, Muslim ban”' that the government did not bother to turn off, state Attorney General Douglas Chin told the judge.

Extending the temporary order until the state's lawsuit is resolved would ensure the constitutional rights of Muslim citizens across the US are vindicated after “repeated stops and starts of the last two months”, the state has said.

The government says the ban falls within the president's power to protect national security. Hawaii has only spelled out generalised concerns about its effect on students and tourism, Department of Justice lawyer Chad Readler told the judge by telephone.

The Trump administration had asked Judge Watson to narrow his ruling to cover only the part of Mr Trump's executive order that suspends new visas for people from six Muslim-majority countries.

Mr Readler said a freeze on the US refugee programme had no effect on Hawaii.

Judge Watson rejected that argument, preventing the administration from halting the flow of refugees.

He said in court that the government only argued for that narrower interpretation after a federal judge in Maryland blocked the six-nation travel ban but said it was not clear that the refugee suspension was similarly motivated by religious bias.

Judge Watson noted that the government said 20 refugees had been resettled in Hawaii since 2010.

“Is this a mathematical exercise that 20 isn't enough? ... What do I make of that?” the judge asked Mr Readler.

The lawyer replied that 20 is simply a small number of refugees.

“In whose judgement?” Judge Watson asked.

Hawaii was the first state to sue over Mr Trump's revised ban. The imam of a Honolulu mosque joined the challenge, arguing that the ban would prevent his Syrian mother-in-law from visiting family in Hawaii.

In his arguments, Mr Chin quoted Mr Trump's comments that the revised travel ban is a “watered down” version of the original.

“We cannot fault the president for being politically incorrect, but we do fault him for being constitutionally incorrect,” Mr Chin said.

The controversial orders Donald Trump has already issued Show all 9 1 /9 The controversial orders Donald Trump has already issued The controversial orders Donald Trump has already issued Trump and the media White House Press Secretary Sean Spicer takes questions during the daily press briefing Getty Images The controversial orders Donald Trump has already issued Trump and the Trans-Pacific Partnership Union leaders applaud US President Donald Trump for signing an executive order withdrawing the US from the Trans-Pacific Partnership negotiations during a meeting in the Roosevelt Room of the White House in Washington DC. Mr Trump issued a presidential memorandum in January announcing that the US would withdraw from the trade deal Getty The controversial orders Donald Trump has already issued Trump and the Mexico wall A US Border Patrol vehicle sits waiting for illegal immigrants at a fence opening near the US-Mexico border near McAllen, Texas. The number of incoming immigrants has surged ahead of the upcoming Presidential inauguration of Donald Trump, who has pledged to build a wall along the US-Mexico border. A signature campaign promise, Mr Trump outlined his intention to build a border wall on the US-Mexico border days after taking office Getty Images The controversial orders Donald Trump has already issued Trump and abortion US President Donald Trump signs an executive order as Chief of Staff Reince Priebus looks on in the Oval Office of the White House. Mr Trump reinstated a ban on American financial aide being granted to non-governmental organizations that provide abortion counseling, provide abortion referrals, or advocate for abortion access outside of the United States Getty Images The controversial orders Donald Trump has already issued Trump and the Dakota Access pipeline Opponents of the Keystone XL and Dakota Access pipelines hold a rally as they protest US President Donald Trump's executive orders advancing their construction, at Columbus Circle in New York. US President Donald Trump signed executive orders reviving the construction of two controversial oil pipelines, but said the projects would be subject to renegotiation Getty Images The controversial orders Donald Trump has already issued Trump and 'Obamacare' Nancy Pelosi who is the minority leader of the House of Representatives speaks beside House Democrats at an event to protect the Affordable Care Act in Los Angeles, California. US President Donald Trump's effort to make good on his campaign promise to repeal and replace the healthcare law failed when Republicans failed to get enough votes. Mr Trump has promised to revisit the matter Getty Images The controversial orders Donald Trump has already issued Donald Trump and 'sanctuary cities' US President Donald Trump signed an executive order in January threatening to pull funding for so-called "sanctuary cities" if they do not comply with federal immigration law AP The controversial orders Donald Trump has already issued Trump and the travel ban US President Donald Trump has attempted twice to restrict travel into the United States from several predominantly Muslim countries. The first attempt, in February, was met with swift opposition from protesters who flocked to airports around the country. That travel ban was later blocked by the Ninth Circuit Court of Appeals. The second ban was blocked by a federal judge a day before it was scheduled to be implemented in mid-March SANDY HUFFAKER/AFP/Getty Images The controversial orders Donald Trump has already issued Trump and climate change US President Donald Trump sought to dismantle several of his predecessor's actions on climate change in March. His order instructed the Environmental Protection Agency to reevaluate the Clean Power Plan, which would cap power plant emissions Shannon Stapleton/Reuters

Earlier this month, Judge Watson prevented the federal government from suspending new visas for people from Somalia, Iran, Syria, Sudan, Libya and Yemen and freezing the nation's refugee programme. His ruling came hours before the federal government planned to start enforcing Mr Trump's executive order.

The president called Judge Watson's previous ruling “unprecedented judicial overreach”.