U.S. stocks edged higher on Election Day, marking the third straight day of gains as voters took to the polls to determine which party will control each house of Congress.