I cannot like your response enough. Hopefully when the girls are old enough to choose, they can be out of that toxicity full time.
We teach people how to treat us (by what we allow or reinforce) and by divorcing their mom, you started showing your girls that that kind of abuse wasn't something you were willing to tolerate (nor should they).