The stocks amassed more than $1.5 trillion in market value on Wednesday, easing pressure on tech giants that had tumbled in recent sessions.