CoreCivic sold two California detention facilities to the federal government for $1.5 billion, with the proceeds to be used to repay outstanding debt and for general corporate purposes.