A victory achieved at great or excessive cost; a ruinous victory.
A Pyrrhic victory is so called after the Greek king Pyrrhus, who, after suffering heavy losses in defeating the Romans in 279 B.C., said to those sent to congratulate him, “Another such victory over the Romans and we are undone.”
That's a new word for me!