The judge ruled that the defense’s vigorous cross-examination neutralized any unfair impact of contested testimony.