A New Jersey high school teacher facing a jury trial has changed her plea to guilty over an indictment originally alleging that she had sex with six male students in 2014.