I am NOT a lawyer but here's the case law that I've noticed:
There are a couple states (northeast, California, and I THINK maybe Washington) that have declared the non-bio mom "in loco parentis" or a "psychological parent" or "de facto parent" so you/she can google those and see if it's ever even been done in your state. I'm guessing you're not in a very progressive place or she would already have a second parent adoption. Maybe she could pretend everything's great again and get one??? In some states she could get guardianship when adoption's not available, so a call to an LGBT lawyer is definitely in order -- I don't think that kind of thing is researchable at all online,

: because I haven't been able to find anyone whose done it though I know a couple that had it in Colorado that had it done and it did give the non-adoptive mom some rights in their divorce.
If there's a chance in your state that she can be considered a psychological parent, one thing she could start doing is drumming up all the evidence she has that they intended to adopt and raise the couple together and it has since been 50/50 in case she has to go the long, expensive court route. So...like a coparenting agreement? A homestudy together? Blog entries that the two of them were thinking about this together and had every intention of this being a joint venture? Pics of both opening presents at the shower? Receipts for baby stuff coming out of hers or a joint bank account, etc. etc. etc. Everything under the sun to show that the adoptive mom did not intend to be the sole parent and has allowed your friend to parent fully so far. The hope is that therefore, it would be in the child's best interest not to severe a strong, "parent-like" relationship.
Conservative courts have given visitation to donors when the parents accepted freaking birthday presents from him, saying they've allowed him to have a "parental" relationship with the child that shouldn't be broken. Therefore, she likewise wants to show that the child perceives her as a parent and that it's damaging to the child to sever the family as the child knows it.
Good luck. It's most likely she's a "legal stranger" to the child, so

I mean, she can stay with this person and MOVE to a better state if needed? That's all I can think of. Can she transfer with your company?