A Texas middle school teacher has been sentenced to prison for having sex with her 15-year-old student — including when she was pregnant