Legal practitioners, court staff and suspects have been affected, with overcrowded holding cells and unsanitary conditions posing health risks