A few dozen refugees held in offshore detention centers run by Australia have left to be resettled in the U.S.

They are the first of up to 1,250 asylum-seekers the Obama administration agreed to accept in a deal with the Australian government in exchange for Australia accepting refugees from Central America.

It's the same deal that was the subject of a contentious phone call between President Trump and Australian Prime Minister Malcolm Turnbull in January. "I think it is a horrible deal, a disgusting deal that I would have never made," Trump said, according to The Washington Post. "As far as I am concerned, that is enough Malcom [sic]. I have had it."

Despite the president's response — and the Trump administration's announcement Wednesday that it plans to lower the total number of refugees that the U.S. will accept next year to 45,000 — the White House appears to be sticking to the agreement with Australia.

"I thank the president and the United States for honoring the deal," Turnbull said in a video message last week. "Around 50 refugees from [Papua New Guinea] and Nauru will be accepted in this first group."

Between 22 and 25 men left an all-male detention center on Papua New Guinea's Manus Island earlier this week; 27 people, both men and women, left a second camp on the tiny island nation of Nauru on Wednesday.

The refugees hail from countries including Bangladesh, Iran, Sri Lanka, Somalia and Myanmar, according to Australian refugee advocacy group Refugee Action Coalition. "They are being sent to live (some with relatives) in many different states including, Arizona, Texas, California, Oregon and New York," the group said in a statement.

The New York Times reportsthat a U.S. State Department official "confirmed that 54 approved refugees would be notified in the coming days and travel to the United States in the coming weeks."

Australia has a policy of sending asylum-seekers attempting to reach Australia by boat to one of the two detention centers. The policy began under former Prime Minister Kevin Rudd in 2013. "No person, no asylum seeker who attempts to reach Australia by boat can ever be resettled in Australia, even if they are found to be a genuine refugee," Reuters correspondent Matt Siegel told NPR last year.

More than 1,700 people are still being held on Manus and Nauru, according to Refugee Action Coalition spokesperson Ian Rintoul.

Detainees on Nauru face "severe abuse, inhumane treatment, and neglect," Human Rights Watch and Amnesty International said in 2016. The rights groups said asylum-seekers "face neglect by health workers," are denied medical care, and "suffer overwhelming despair — self-harm and suicide attempts are frequent."

A former aid worker told NPR she reported "abuse and systemic violations of human right[s] to children and families on Nauru."

Siegel outlined the conditions at the other detention center on Manus Island:

"It's extremely hot. There's no air conditioning. They live often in tents. It's difficult in terms of the confinement, but I think the real concern for people are the conditions, psychologically, that people go through in terms of being indefinitely detained. Some of these people have been in these camps for three, four, five years, and that leads to an enormous level of self-harm, suicide attempts, especially among — and most disturbingly, amongst children and young children."

The Guardian has reportedthat Australia's government says it will close the Manus Island camp by the end of October, after Papua New Guinea's Supreme Court called it illegal. But there are no plans to close the facility at Nauru.

The government also says the refugee policy is for humanitarian purposes and that it discourages smugglers and asylum-seekers from trying to reach Australia by boat.

Turnbull added that this resettlement of detainees in the U.S. "is a one-off. And it's available only to those found to be refugees who are currently in P.N.G. and Nauru. And is of course subject to the United States' own extreme vetting mandated by the president."

Copyright 2017 NPR. To see more, visit http://www.npr.org/.