Unpopularity of the war may affect the US approach to the conflict and hurt Republicans in the elections, analysts say.