Slowing inflation and the first interest-rate reduction by the Federal Reserve in four years gave Americans a little more confidence in the economy, but the outcome of the presidential election also weighed on their minds.