idiom
win the battle but lose the war
Meaning
to achieve a small success but fail in the larger goal
Example
By focusing on minor issues, they **won the battle but lost the war**.