CoreCivic and GEO Group profit from Trump’s immigration policies while also receiving lucrative contracts from state and local governments, including areas controlled by Democrats.