NEW YORK — Stocks rose broadly Monday, recouping some losses from a sell-off last week, as investors tried to look beyond uncertainty about the outlook for interest rates.

The major U.S. indexes dipped into losses in the afternoon on sharp declines for drugmakers. The drop was sparked by a tweet from Democratic presidential front-runner Hillary Clinton about plans to stop “price gouging” in the industry. But rising technology and banking shares helped lift the market by the end of the day.

Jack Ablin, chief investment officer at BMO Private Bank, said that investors have been conditioned to buy after big drops during the long bull market, and that’s what they did Monday.

The Dow Jones industrial average closed up 125.61 points, or 0.8 percent, to 16,510.19.

The Standard & Poor’s 500 index rose 8.94 points, or 0.5 percent, to 1,966.97. Nine of the 10 industry sectors in the index rose. The Nasdaq composite gained 1.73 points, or less than 0.1 percent, to 4,828.95.

Last week’s broad slump was triggered by a decision from the Federal Reserve not to raise interest rates. Low borrowing rates have helped stocks triple in price since 2009, and a decision to keep them low normally would encourage investors to buy shares.

But the central bank cited concerns over a global economic slowdown for delaying a hike, and that spooked investors already on edge after weeks of second guessing growth in China and the impact of struggling emerging markets with plunging currencies.

Financial stocks rose Monday after comments from Federal Reserve officials over the weekend suggested some still foresee a rate increase as likely this year. Federal Reserve Bank of Atlanta President Dennis Lockhart said Monday he was “confident” of a rate rise this year.