The new laws will allow former immigration detainees to be re-detained if they are judged to pose a high risk of committing serious violent or sexual crime.