With President Bush making a high-profile visit to Baghdad , and his chief political adviser , Karl Rove , having unleashed a sharp attack on Democrats over the war , Republicans said Democratic infighting over Iraq would hurt Democrats as the midterm elections approached .