The mass deportation of undocumented immigrants would face legal and practical challenges - and cost billions.