A federal judge in Kansas has released at least 23 immigrants, including convicted criminals, due to indefinite detention.