Judge rips sheriff's deputies over stolen cars