Nvidia and Intel led a rally for technology stocks after announcing a deal that includes a $5 billion investment.