War with Iran contradicts the US president's own criticism of regime change policies in the Middle East, analysts say.