The UK parliament has finally passed a  contentious bill that will allow the government to send asylum seekers to Rwanda for their claims to be considered by the East African nation.

Prime Minister Rishi Sunak’s efforts had been stuck between opposition in the Houses of Parliament and challenges in the British courts, as lawmakers and activists have sought to scupper the legislation on human rights grounds.

Sunak’s inability to implement the policy has caused considerable embarrassment, as the British government has sent millions of pounds to Rwanda to fund a scheme which to date has failed to deliver any results.

It is designed to deter irregular migration into the United Kingdom, particularly people traveling on illegal – and dangerous – small boats from France, arranged by criminal gangs.

In theory, the legislation will see some landing in the UK sent to Rwanda where their asylum claim will be considered. If their claim is accepted, they will stay in Rwanda. If it is declined, the bill says they cannot be deported by Rwanda to anywhere other than the UK, though it is unclear what would ultimately happen in this scenario.

Two years after the scheme was first conceived, the absence of any deportations so far has been considered a major failure for Sunak, who has previously marked out stopping small boats as a key priority.

The Supreme Court of the UK  ruled last year that the policy is unlawful “because there are substantial grounds for believing that asylum seekers would face a real risk of ill-treatment by reason of refoulement to their country of origin if they were removed to Rwanda.”

Refoulement is the practice where asylum seekers or refugees are forcibly returned to a place where they would face persecution or danger, against important principles of international human rights law