Just before the family members of a 12-year-old girl who was hit and killed by a car last year were set to give impact statements in court, the judge recused himself from the case.