Some Democratic politicians were initially hesitant to criticize the war with Iran, waiting to see its outcome