All I can say is try to get her out of the situation. At 17 and pregnant she can sue to be an amincipated minor.
When does she turn 18?
Not all states allow emancipation. And not all judges would emancipate a 17 year old just because of pregnancy. A bad decision does not give a reason to be emancipated.
If a state does allow emancipation, usually the judge will require the minor to be able to support himself/herself. That means food, housing, healthcare, everything, all on their own. This girl doesn't sound like she is self-sufficient, with enough income to afford all of that.