NEW YORK — U.S. stocks rose Friday, with the major indexes finishing with weekly gains, as upbeat consumer confidence and manufacturing data countered concern about government-spending cuts.

Federal Reserve Chairman Ben Bernanke’s reiteration this week that monetary stimulus would continue helped support equities, with the Dow Jones industrial average on Thursday coming within 15 points of its 14,164.53 all-time closing high hit on Oct. 9, 2007.

“It’s the great bull market that no one believes in,” Alan Skrainka, chief investment officer at Cornerstone Wealth Management, said of equities nearing all-time highs.

On Friday, the Dow ended 75 points from its record finish, recovering from a 116-point drop after a report by the Institute for Supply Management, which said its manufacturing index accelerated in February, rising to 54.2 percent from 53.1 percent the month before.

Up 0.3 percent for the week, the Dow industrials added 35.17 points, or 0.3 percent, to 14,089.66.

The S&P 500 index advanced 3.52 points, or 0.2 percent, to 1,518.20, with health care faring best and industrials leading declines among its 10 major sectors. The index posted a 0.2 percent weekly gain.

Groupon Inc. rallied nearly 13 percent a day after the daily-deals provider fired its CEO after a disappointing quarter.

More in Business

A prominent white nationalist is suing Twitter for banning his accounts at a time when social networks are trying to crack down on hateful and abusive content without appearing to censor unpopular opinions.

The social media service Twitter is believed to have suspended thousands of accounts for being automated bots, or for other policy violations, drawing outcry from fringe conservative media figures who lost followers in the move.

Two senior U.S. Geological Survey officials have stepped down after Interior Secretary Ryan Zinke demanded that they provide his office with confidential data on the National Petroleum Reserve-Alaska before it was released to the general public.