Stock indexes on Wall Street ended with meager gains Tuesday, as a late-afternoon rally led by technology companies stemmed the market’s losses after an early slump.
The S&P eked out a gain of 0.2 percent after having been down 2.2 percent earlier in the day. The Dow Jones Industrial Average lost 0.4 percent, while the tech-heavy Nasdaq composite closed 1.7 percent higher.