US stocks climbed Thursday, ending the day on the cusp of a record as optimism around potential rate cuts stoked risk-on sentiment across financial markets.