Wall Street stocks finished the week with a flourish after continued momentum for equities tied to artificial intelligence, especially Nvidia, which finished with a valuation above $2 trillion for the first time.