Is there any word or phrase I can use for Pyrrhic Victory, or perhaps empty victory, or both? The first being a case where one wins but suffers such huge damage in some other way that it's victory in name only. The second being a victory but a generally meaningless one.
"Win the battle, lose the war" might come close.
In lieu of any of the above, a pattern for X "in name only" might suffice.