The Democrats’ election sweep on Tuesday could have far-reaching consequences for markets and the economy.