The Trump administration on Thursday asked the Supreme Court to let it move forward with the President's plan to temporarily ban citizens from six mostly Muslim countries, elevating a divisive legal battle involving national security and religious discrimination to the nation's highest court.

Justice Department lawyers asked the court to overturn a decision of the full US Court of Appeals for the 4th Circuit that kept in place a freeze on President Donald Trump's revised ban.

The 10-to-3 ruling last week was one in a series of legal defeats for the administration, as judges across the country have said Mr Trump's claim of protecting the nation was cover for making good on a campaign promise to ban Muslims from entry into the United States.

The government's filing late Thursday asks the justices to set aside the 4th Circuit ruling and accept the case for oral arguments. It also asks the high court to lift a nationwide injunction issued by a federal judge in a separate Hawaii case. A panel of the US Court of Appeals for the 9th Circuit, which covers Hawaii, heard the government's arguments in that case last month, but has not yet ruled.

In turning to the high court, Justice Department lawyers said the 4th Circuit should have considered only the language of the executive order and not second guessed the President's motivations.

The Supreme Court "has never invalidated religion-neutral government action based on speculation about officials' subjective motivations drawn from campaign-trail statements by a political candidate," the government's lawyers wrote in their filing.

Justice Department spokeswoman Sarah Isgur Flores said Thursday that the administration is "confident that President Trump's executive order is well within his lawful authority to keep the nation safe and protect our communities from terrorism."

The President's travel order has been one of the most controversial of the Trump administration, as the first entry ban created chaos at airports around the world and prompted major protests here and abroad.

Mr Trump has denounced judicial decisions freezing the ban as unprecedented assaults on his power to fulfil his most important role, keeping the nation safe.

It would take the votes of five of the nine justices to grant the government's request, and require a finding that the government was likely to prevail on the merits of its argument - and that it would be irreparably harmed if the 4th Circuit's decision remained in place.

The timing of case is tricky: the process of briefing, arguing and deciding a case at the Supreme Court takes months. The justices are scheduled to end their work at the end of the month. And the ban, if it is allowed to be enforced, is proposed as temporary, just to give the government 90 days to study and implement new vetting procedures. Acting solicitor general Jeffrey Wall has said that the ruling in the Hawaii case has prevented the government from moving forward on those objectives.

Mr Trump on 27 January, just a week after inauguration, issued the first travel ban executive order. It barred the entry of citizens of seven majority-Muslim nations (Iraq, Iran, Somalia, Sudan, Yemen, Syria and Libya), ordered a temporary halt to refugee arrivals and would have eventually given preference to those who were religious minorities in their countries, such as Christians.

Several judges and a panel of the US Court of Appeals for the 9th Circuit shut it down.

Mr Trump vowed to go to the Supreme Court that time, too, but eventually issued a new order. That order, the subject of the 4th Circuit ruling, removed Iraq from the list, deleted references to religion and added national security rationales for the policy.

But it was stopped by federal district judges in Maryland and Hawaii.

In the 4th Circuit, which covers Maryland, six judges agreed in full with an opinion by Chief Judge Roger Gregory that the national security rationale advanced by the president was simply pretext for unlawful animosity toward Muslims and an attempt to make good on a campaign promise to bar Muslims from entry into the country.

He cited Mr Trump's campaign rhetoric and statements made when he signed the executive orders and said courts had an obligation to look beyond their seemingly neutral language.

The order "speaks with vague words of national security, but in context drips with religious intolerance, animus, and discrimination," Gregory wrote.

In pictures: President Donald Trump on tour Show all 39 1 /39 In pictures: President Donald Trump on tour In pictures: President Donald Trump on tour 20 May 2017 US President Donald Trump and Saudi Arabia's King Salman bin Abdulaziz al-Saud arriving for a reception ahead of a banquet at Murabba Palace in Riyadh Getty Images In pictures: President Donald Trump on tour 20 May 2017 US President Donald Trump, accompanied by First Lady Melania Trump, and Saudi Arabia's King Salman bin Abdulaziz al-Saud being welcomed at Murabba Palace in Riyadh Getty Images In pictures: President Donald Trump on tour 20 May 2017 US President Donald J. Trump with King of Saudi Arabia Salman bin Abdulaziz Al Saud during a welcome ceremony with traditional sword dancers at Murabba Palace, in Riyadh, Saudi Arabia EPA In pictures: President Donald Trump on tour 20 May 2017 King of Saudi Arabia Salman bin Abdulaziz Al Saud with US President Donald J. Trump and wife Melania during a welcome ceremony at Murabba Palace, in Riyadh, Saudi Arabia EPA In pictures: President Donald Trump on tour 20 May 2017 US President Donald Trump adjusts the Collar of Abdulaziz Al Saud Medal, after it was bestowed upon him by Saudi Arabia's King Salman bin Abdulaziz Al Saud at the Royal Court in Riyadh, Saudi Arabia Reuters In pictures: President Donald Trump on tour 20 May 2017 Saudi Arabia's King Salman bin Abdulaziz Al Saud presents U.S. President Donald Trump with the Collar of Abdulaziz Al Saud Medal at the Royal Court in Riyadh, Saudi Arabia Reuters In pictures: President Donald Trump on tour 21 May 2017 Palestinians print posters depicting US President Donald Trump in preparations for his planned visit, in the West Bank town of Bethlehem Reuters In pictures: President Donald Trump on tour 21 May 2017 US President Donald Trump accompanied by first lady Melania Trump, his daughter Ivanka Trump and her husband White House senior advisor Jared Kushner, before delivering his remarks to the Arab Islamic American Summit in Riyadh, Saudi Arabia Reuters In pictures: President Donald Trump on tour 21 May 2017 US President Donald Trump looks on as U.S. Secretary of State Rex Tillerson and Saudi Arabia's Crown Prince Muhammad bin Nayef exchange a memorandum of understanding Reuters In pictures: President Donald Trump on tour 21 May 2017 First Lady Melania Trump shares a laugh with a child during a visit to the American International School in the Saudi capital Riyadh Getty Images In pictures: President Donald Trump on tour 21 May 2017 US President Donald Trump holds a bilateral meeting with Bahrain's King Hamad bin Isa Al Khalifa AP In pictures: President Donald Trump on tour 22 May 2017 Israeli soldiers rest during preparations ahead of President Trump's landing in Tel Aviv, Israel Getty Images In pictures: President Donald Trump on tour 22 May 2017 First Lady Melania Trump makes her way to board Air Force One in Riyadh as she heads with her husband the US President to Israel Getty Images In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump and first lady Melania Trump board Air Force One for Israel, the next stop in Trump's international tour, at King Khalid International Airport AP In pictures: President Donald Trump on tour 22 May 2017 Israeli soldiers wait for the arrival ceremony of US President Donald Trump at Ben Gurion airport near Tel Aviv, Israel AP In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump and first lady Melania Trump arrive aboard Air Force One at Ben Gurion International Airport in Lod near Tel Aviv, Israel Reuters In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump and first lady Melania Trump disembark Air Force One on arrival at Ben Gurion International Airport AP In pictures: President Donald Trump on tour 22 May 2017 US President Donald J. Trump and his wife, US First Lady Melania Trump are welcomed by Israeli Prime Minister Benjamin Netanyahu upon arrival at Ben Gurion Airport, in Lod outside Tel Aviv, Israel EPA In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump and Israeli Prime Minister Benjamin Netanyahu sit during welcome ceremony in Tel Aviv AP In pictures: President Donald Trump on tour 22 May 2017 US First Lady Melania Trump chats wife Sara Netanyahu as US President Donald Trump chats to Israel's Prime Minister Benjamin Netanyahu during a welcoming ceremony to welcome Trump at Ben Gurion International Airport Reuters In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump delivers a speech upon his arrival at Ben Gurion International Airport in Tel Aviv Getty Images In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump gestures during a press conference with Israel's President at the President's Residence in Jerusalem Getty Images In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump watches as First Lady Melania Trump signs the guest book at the President's Residence in Jerusalem Getty Images In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump walks with first lady Melania Trump in Jerusalem's Old City Reuters In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump visits the Western Wall, the holiest site where Jews can pray, in Jerusalems Old City Getty Images In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump stands next to Rabbi Shmuel Rabinowitz at the plaza in front of the Western Wall, Judaism's holiest prayer site, in Jerusalem's Old City Reuters In pictures: President Donald Trump on tour 22 May 2017 US Secretary of State Rex Tillerson and White House senior advisor Jared Kushner leave notes at the Western Wall in Jerusalem Reuters In pictures: President Donald Trump on tour 22 May 2017 US First Lady Melania Trump touches the Western Wall, Judaism's holiest prayer site, in Jerusalem's Old City EPA In pictures: President Donald Trump on tour 22 May 2017 Ivanka Trump, assistant and daughter of US President Donald J. Trump, touches the Western Wall, Judaism's holiest prayer site, in Jerusalem's Old City EPA In pictures: President Donald Trump on tour 22 May 2017 President Donald Trump visits the Western Wall AP In pictures: President Donald Trump on tour 24 May 2017 US President Donald J. Trump arrives in a vehicle to Saint Damaso's Court for a private audience with Pope Francis in Vatican City EPA In pictures: President Donald Trump on tour 24 May 2017 Pope Francis walks past Ivanka Trump and First Lady Melania Trump on the occasion of the private audience with President Donald Trump, at the Vatican AP In pictures: President Donald Trump on tour 24 May 2017 Pope Francis exchanges gifts with US President Donald Trump during a private audience at the Vatican Getty Images In pictures: President Donald Trump on tour 24 May 2017 Pope Francis meets US President Donald Trump and his wife Melania during a private audience at the Vatican Reuters In pictures: President Donald Trump on tour 24 May 2017 Pope Francis with US President Donald J. Trump EPA In pictures: President Donald Trump on tour 24 May 2017 Pope Francis gets into is car after meeting with US President Donald Trump AP In pictures: President Donald Trump on tour 24 May 2017 President Donald Trump and his wife Melania look at the frescoed ceilings during their visit to the Sistine Chapel at the Vatican L'Osservatore Romano/Pool Photo via AP In pictures: President Donald Trump on tour 24 May 2017 US President Donald Trump security vehicles are seen in front of Air Force One before take off from Leonardo da Vinci-Fiumicino Airport in Rome, Italy Reuters In pictures: President Donald Trump on tour 24 May 2017 US President Donald Trump and First Lady Melania Trump wave to reporters before boarding the Air Force One to Brussels, at the end of a 2-day visit to Italy including a meeting with Pope Francis at the Vatican, at Rome's Fiumicino international airport AP

In their filing Thursday, the government's lawyers acknowledged the high-profile political debate surrounding the travel order, but said it was critical for the court to affirm the president's broad authority when it comes to immigration.

"The precedent set by this case for the judiciary's proper role in reviewing the president's national-security and immigration authority will transcend this debate, this order, and this constitutional moment," they said. "The decision below departs from those rules, and calls into question the Executive and his authority in a way that warrants this Court's review."

At the 4th Circuit, two of the judges agreed with the majority that the order likely violates the constitutional command that government not favour or disparage one religion over another. But they also said the order was not justified under the power that Congress gives the president by law.

That broad power says that "whenever the President finds that the entry of any aliens or of any class of aliens . . . would be detrimental to the interests of the United States, he may . . . suspend the entry of all aliens or any class of aliens as immigrants or non-immigrants."

Congress later added, though that "no person shall receive any preference or priority or be discriminated against in the issuance of an immigrant visa because of the person's race, sex, nationality, place of birth, or place of residence."

Judge Barbara Milano Keenan said that Mr Trump had made no finding that the citizens of the six countries provided a specific threat to the United States. And Judge James Wynn Jr. said Congress did not give the president power to take action based on "invidious discrimination."

All of the judges ruling against Mr Trump were nominated to the appeals court by Democratic presidents. The three dissenting judges were nominated by Republicans, and said their colleagues had wandered into uncharted territory by relying on campaign statements to find an Establishment Clause violation.

"The Supreme Court surely will shudder at the majority's adoption of this new rule that has no limits or bounds - one that transforms the majority's criticisms of a candidate's various campaign statements into a constitutional violation" wrote Judge Paul Niemeyer.