She could have applied for Advanced Parole, exited the country, and came back legally (with inspection). It still can be done, however, now with Trump, it's a lot more riskier since nothing is certain.
Once she enters with inspection it would have been a lot easier to resolve her situation.