There are ‘for profit’ companies that run private prisons and house prisoners the state sends to them. California has decided that no one should make a profit from housing prisoners and wants them all shut down.
The court could rule that the Feds can have and hire the private prisons for it’s federal prisoners and the state of California is free to not sent its state prisoners there.