I'm glad you're finally taking action. I think it is a very bad example for your D to see you playing doormat to her adulterous mom.

Put a stop to it and get on with your life.