Tech stocks on Wall Street rose and Nasdaq gained about 1.7% as investors were optimistic about the start of trading for Anthropic shares.