The move aimed to deport dangerous foreign criminals from the UK and free up critical space in prisons across the country.