Republicans pounced on Obama 's comments , arguing that his opposition to the surge , which is credited with helping reduce raging violence in Iraq , proved he did not have the judgement required of a potential US commander-in-chief .