U.S. stocks rallied Tuesday as voters headed to the polls on the last day of the presidential election and as more data piled up showing the economy remains solid.