Nvidia shares rose to a new record Thursday, helping lift the S&P 500 and Nasdaq composite to all-time highs of their own. The artificial intelligence chip-maker closed Thursday’s trading with a valuation of more than $4 trillion, the world’s first company to reach that mark. Nvidia touched the milestone during intraday trading on Wednesday, but fell shy at the close.