U.S. stocks rallied late Wednesday, pushing the Nasdaq Composite index to its highest close in nearly nine months, thanks to easing concerns over the stability of regional banks and growing optimism about a potential debt ceiling deal.