Perversely, Weld lost the ideology/competence battle by winning the drugs/morality battle.
The battle of drugs and morality was won by Weld.
Weld lost both battles: ideology/competence and drugs/morality.