Fight over release of police disciplinary records plays out in court