U.S. stocks rallied on Tuesday, fueled by positive economic data, but the looming presidential election kept investors on edge. The tight race between Donald Trump and Kamala Harris, coupled with the potential for a split Congress, injected uncertainty into the markets.