The city was accused of unlawfully holding more than 20,000 people beyond their scheduled release dates between 1997 and 2012 to comply with ICE detainer requests.