Pyrrhus of Epirus
The phrase originates from a quote from Pyrrhus of Epirus, whose triumph against the Romans in the Battle of Asculum in 279 BC destroyed much of his forces, but the tactical victory forced the end of his campaign.