Foreigners who were barred from entering the U.S. during President Donald Trump's first attempt to ban travel from seven Muslim-majority nations will get government help reapplying for visas under a lawsuit settlement reached Thursday.

Civil rights lawyers and the Trump administration announced the deal during a conference call in federal court in Brooklyn, one scene of the legal battle over the treatment of hundreds of travellers who were processed at U.S. airports over a chaotic weekend in January.

Under the terms of the settlement, the government agreed to notify an unspecified number of people overseas who were banned that they can reapply for visas with the help of a Department of Justice liaison for a three-month period. In return, the plaintiffs said they would drop all their claims.

Story continues below advertisement

"We are pleased with the settlement and that this chapter in the fight is done," said American Civil Liberties Union Attorney Lee Gerlent.

Gerlent said it's unclear how many people will benefit from the settlement because the government has refused to disclose the total.

A DOJ statement read, "Although this case has been moot since March, when the president rescinded the original executive order and issued a new one that does not restrict the entry of Iraqi nationals, the U.S. government has elected to settle this case on favourable terms."

The ACLU, along with the National Immigration Law Center and the International Refugee Assistance Project, sued on behalf of two Iraqui nationals after the Trump administration implemented a policy Jan. 27 that barred entry of visa-holders from Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen. One of the plaintiffs was Hameed Khalid Darweesh, a translator who has done work for the U.S. military, who was detained at John F. Kennedy International Airport.

A federal judge blocked the ban eight days later in a ruling upheld by a circuit court. Rather than pursue an appeal, the administration said it would revise the policy.

In June, the Supreme Court found that the narrower order could be enforced if those visitors lack a "credible claim of a bona fide relationship with a person or entity in the United States."