The president’s weakening poll numbers come as the war in Iran has driven up gas prices, and more Americans are expressing concerns about the economy.