The US Supreme Court has set up a major showdown over presidential powers, agreeing to decide the legality of US President Donald Trump's latest travel ban targeting people from six mainly Muslim countries.
The court is due to hear arguments in April and issue a ruling by the end of June.
The court will decide on whether the policy violates federal immigration law or the US Constitution's prohibition on religious discrimination.
Mr Trump's policy, announced in September, blocks entry into the US of most people from Chad, Iran, Libya, Somalia, Syria and Yemen.
The legal fight involves the third version of a contentious policy Mr Trump first sought to implement a week after taking office in January 2017.
The Supreme Court signalled last month it was likely to uphold the ban when it let it go into full effect, while legal challenges by the state of Hawaii and others continued.
Lower courts had partially blocked the ban.
The Republican president has said the policy is needed to protect the US from terrorism by Islamic militants.
Those challenging the travel ban have argued that it was motivated by Mr Trump's enmity toward Muslims, pressing that point in court with some success by citing statements he made as a candidate and as president.
As a candidate, Mr Trump promised "a total and complete shutdown of Muslims entering the United States".
As president, he has rescinded protections for hundreds of thousands of immigrants who were brought into the country illegally as children, sought to ramp up deportations and pursued new measures restricting legal immigration.
In November, he shared anti-Muslim videos on Twitter posted by a far-right British political figure.
"We have always known this case would ultimately be decided by the United States Supreme Court. This will be an important day for justice and the rule of law.
"We look forward to the court hearing the case," said Hawaii Attorney General Douglas Chin.
Mr Trump's ban also covered people from North Korea and certain government officials from Venezuela, but lower courts had already allowed those provisions to go into effect.
The case represents a high-profile test of presidential powers.
In court papers, US Solicitor General Noel Francisco, arguing for the Trump administration, said the president has "broad authority to suspend or restrict the entry of aliens outside the United States when he deems it in the nation's interest".
The latest ban was introduced on 24 September after what Mr Francisco called an "extensive, worldwide review" to determine which foreign governments provide information required by the United States to vet those seeking entry.
"The countries on the list are those that do not share that information or present "other heightened risk factors," he said.
Hawaii's lead lawyer Neal Katyal said in court papers that the president has only limited authority to exclude entry of people from other countries.
Under a US law called the Immigration and Nationality Act, a president can restrict entry only of those deemed a potential threat or in certain emergency situations.
The law also prohibits discrimination on the basis of nationality.
The law does not "surrender to the president a boundless authority to set the rules of entry and override the immigration laws at will," Mr Katyal said in court papers.
After the current ban was announced, courts in Seattle and Maryland ruled it was unlawful, prompting the administration to appeal.
Before the Supreme Court's December order, the lower courts had also allowed the ban to go into effect for those with no close relatives in the United States or "formal, documented" relationships with US-based entities such as universities and resettlement agencies.
In the Hawaii challenge, the San Francisco-based 9th US Circuit Court of Appeals ruled in December that Mr Trump's ban violated federal immigration law.
It did not decide whether the ban violated the US constitution.
The American Civil Liberties Union pursued a separate legal challenge filed in Maryland that is now before the Virginia-based 4th US Circuit Court of Appeals.