LONDON (AP) — The U.K. government’s plan to send asylum-seekers on a one-way trip to Rwanda is legal, two High Court judges ruled Monday in a victory for backers of the controversial policy.

But the judges also said the government failed to consider the individual circumstances of the people it tried to deport, signaling further legal battles ahead before anyone is put on a plane to East Africa.

A court hearing in the case is set for next month, and appeals are likely.

Several asylum-seekers, aid groups and a border officials’ union filed lawsuits to stop the Conservative government acting on a deportation agreement with Rwanda that aims to deter migrants from trying to reach the U.K. by crossing the English Channel.

The U.K. plans to send some migrants who arrive in the U.K. as stowaways or in small boats to the East African country, where their asylum claims would be processed. Under the plan, applicants granted asylum would stay in Rwanda rather than returning to the U.K.

“The court has concluded that it is lawful for the government to make arrangements for relocating asylum-seekers to Rwanda and for their asylum claims to be determined in Rwanda rather than in the United Kingdom,” Judge Clive Lewis said.

But he added that the government “must decide if there is anything about each person’s particular circumstances which means that his asylum claim should be determined in the United Kingdom or whether there are other reasons why he should not be relocated to Rwanda.”

“The Home Secretary has not properly considered the circumstances of the eight individual claimants whose cases we have considered,” the judge said.

Ever Solomon, head of the charity Refugee Council, said the group was “very disappointed” by the ruling.

“Treating people who are in search of safety like human cargo and shipping them off to another country is a cruel policy that will cause great human suffering,” he said.

More than 44,000 people who crossed the Channel in small boats have arrived in Britain this year, and several have died in the attempt, including four last week when a boat capsized in freezing weather.

Human rights groups say the government’s deal with Rwanda is illegal and unworkable, and that it is inhumane to send people thousands of miles to a country they don’t want to live in. They also cite Rwanda’s poor human rights record, including allegations of torture and killings of government opponents.

Britain has paid Rwanda 120 million pounds ($146 million) under the deal struck in April, but no one has yet been sent to the country. The U.K. was forced to cancel the first deportation flight at the last minute in June after the European Court of Human Rights ruled the plan carried “a real risk of irreversible harm.”

The British government is determined to press on with the policy, arguing that it will deter people-trafficking gangs who ferry migrants on hazardous journeys across the Channel’s busy shipping lanes.

Home Secretary Suella Braverman, who has called the Channel crossings an “invasion of our southern coast,” told the Times of London it would be “unforgivable” if the government did not stop the journeys.

Rwandan government spokeswoman Yolande Makolo welcomed the British court’s decision.

“This is a positive step in our quest to contribute innovative, long-term solutions to the global migration crisis,” she said.

The U.K. government has argued that while Rwanda was the site of a genocide that killed more than 800,000 people in 1994, the country has since built a reputation for stability and economic progress. Critics say that stability comes at the cost of political repression.

The U.K. receives fewer asylum-seekers than many European nations, including Germany, France and Italy, but thousands of migrants from around the world travel to northern France each year in hopes of crossing the Channel. Some want to reach the U.K. because they have friends or family there, others because they speak English or because it’s perceived to be easy to find work.

The government wants to deport all migrants who arrive by unauthorized routes, and aims to strike Rwanda-style deals with other countries. Critics point out there are few authorized routes for seeking asylum in the U.K., other than those set up for people from Ukraine, Afghanistan and Hong Kong.

A surge in arrivals and a U.K. bureaucratic backlog, exacerbated by the coronavirus pandemic, has led to many Channel migrants languishing in overcrowded processing centers, where there have been outbreaks of diphtheria and other diseases.

___

Follow AP’s coverage of global migration at https://apnews.com/hub/migration