Personally I believe Tanya manages to hold the war into a stand still and, somehow, becomes the world enemy allowing for the Empire to scrunch together a peace treaty with everyone else to end the war.
Edit: Just saying I have not read the novel yet, nor am I going to before the manga ends, so I...