EU politicians have promised to increase deportations of undocumented migrants, under a new law that critics say mimics elements of the Trump administration’s brutal immigration crackdown.

Finalising a key element of an overhauled EU asylum and migration system, politicians have agreed a regulation that will enable national authorities to raid people’s homes to enforce deportation orders.

People facing a deportation order who are deemed to be uncooperative or a flight risk could be detained for up to two years, extendable to 30 months, compared with the 18-month detention period under existing law. Those who refuse to comply with a deportation order could have benefits or other allowances cut.

The regulation will also enable the creation of offshore return hubs, centres outside the EU where undocumented people would be held for unspecified periods, pending return to their home country.