A surging inmate population in the 1980s led to a boom in for-profit prisons. Today, privately run prisons have become the government’s default detention centers for undocumented migrants.