Both nationally and in swing states, the economy was the primary concern of voters