Judge Tracey Lloyd-Clarke said her unauthorized access inflicted serious harm on policing by eroding public confidence.