Sometimes we have to make choices that are not ideal but it sounds like you did just that. Be proud that you allowed yourself to have decision making power via mediation. A trial would have eliminated most of your decision making power.
Your W is a greedy, greedy, greedy woman. But you know that. Her (your) children will know that too. Clearly she is not generous in spirit since she is comfortable bashing you in front of your children who are deeply suffering.
You might be in financial debt and for a while you will feel like you are in emotional debt but you will never have moral debt. And maybe that is the best victory to savor.
Be well, friend. While this experience is riddled with pain for you, it has been a great pleasure to watch you grow and rebuild yourself as a man. And make no mistake about it, you *are* a good man.