Judge orders former Sullivan County teacher to be reinstated