Brooklyn Teacher in sex scandal case pleads guilty