Stocks eke out gain as Nvidia rally slows, yields slip