it is. but this isn't a cost-benefit analysis. this is a specifically political decision, ergo your point about xenophobes. but it seems that, now, the chapter of offshoring has come to an end.
p.s. if you want some rough cost estimates, from a study I saw ~2 years ago, detention costs per day...