Wall Street closed in positive territory on Tuesday, with the three major U.S. stock indices each recording modest gains. The S&P 500 rose.