A judge has permitted the parents of Ellen Greenberg, a Manayunk teacher who died in 2011, to go to trial against several city officials for emotional distress.