It was a Federal court ruling, instigated by ACLU on the grounds of incarcerating people against their will without being convicted of a crime.
Ok good - NOT congress!
I’ll shift the focus of blame to the courts!