New study finds police unions linked to officer misconduct