My ex-husband claimed both of our children as his dependents on his tax return despite a mutual agreement that I would claim both on my return, how do I dispute this?

Our agreement was in the form of a text.  He makes more than I do, does not pay child support and the kids are with me more.  How can he be allowed to break his agreement and take everything?