Buoyed by an upswing in economic optimism, President Obama has strengthened his support among voters