idiom
Pyrrhic victory
Meaning
A victory won at too great a cost to be worthwhile.
Example
Winning the lawsuit was a **Pyrrhic victory** since it drained all their finances.