Wall Street's benchmarks finished up on Tuesday, recouping some of the previous session's losses, as investors bought back in to technology stocks and investors shifted their focus to upcoming inflation data and the start of third-quarter earnings season.