America’s employers kept hiring vigorously in October, adding 261,000 positions, a sign that as Election Day nears, the economy remains a picture of solid job growth and painful inflation.

Friday’s report from the government showed that hiring was brisk across industries last month, though the overall gain declined from 315,000 in September. The unemployment rate rose from a five-decade low of 3.5% to a still-healthy 3.7%.

The government also said that average hourly pay rose 4.7% from a year ago, a smaller year-over-year gain than in September. Still, last month’s average 12-month wage increase remained high enough to fuel inflation.

Also Read | Elon Musk’s ‘Deep Cuts Plan’: Will Twitter crash during US midterms?

A strong job market is deepening the challenges the Federal Reserve faces as it raises interest rates at the fastest pace since the 1980s to try to bring inflation down from near a 40-hear high. Steady hiring, solid pay growth and a low unemployment rate have been good for workers. But they have also contributed to rising prices.

The October jobs figures were the last major economic report before Election Day, with voters keenly focused on the state of the economy. Chronic inflation is hammering the budgets of many households and has shot to the top of voter concerns in the midterm congressional elections that will end Tuesday. Republican candidates have attacked Democrats over inflation in their drive to regain control of Congress.

Also Read | Week before midterms, Joe Biden says American democracy is under attack

Over the past three months, job gains have averaged 289,000, down from a sizzling monthly rate of 539,000 a year ago. All the jobs that employers have added since the recession ended have boosted the ability of consumers to keep spending, even amid high inflation. A labor shortage in many areas of the economy has also compelled businesses to pay more to attract and keep workers.

President Joe Biden and congressional Democrats have pointed to the vigorous resurgence in hiring as evidence that their policies have helped get Americans back to work faster than the nation managed to do after previous downturns. But that message has been overtaken in the midterm political campaigns by the crushing surge of inflation, which has soured many Americans on the economy under Democratic leadership in Congress and the White House.

Also Read | ‘Credible information of a broad threat’ in New Jersey synagogues: FBI

The October jobs report showed that job gains were widespread last month. Health care added 71,000, with hospitals and doctors’ offices continuing to re-staff after having lost many workers at the height of the pandemic. Manufacturing added 32,000. A category that includes engineers, accountants and lawyers added 39,000.

Still, signs are emerging that some corners of the economy have begun to flag under the weight of rising prices and much higher borrowing costs engineered by the Fed’s aggressive interest rate hikes. Especially in industries like housing and technology, hiring has waned. Many tech companies, such as the ride-hailing firm Lyft and the payment company Stripe, have announced plans to lay off workers. Amazon said Thursday it would suspend its corporate hiring.

Also Read | Bank of England raises benchmark rate by 75 bps, biggest hike in 30 years

Across the broader economy, though, the pace of layoffs remains unusually low. And companies in travel, restaurants, manufacturing and health care are still hiring steadily. Southwest Airlines told investors last week that it was on track to hire 10,000 employees this year, including 1,200 pilots. Laboratory Corporation of America said it plans significant hiring.

At a news conference Wednesday, Fed Chair Jerome Powell noted that the strong job market is feeding inflationary pressures as businesses continue to raise pay. In September, average wages rose more than 6% from 12 months earlier, according to the Federal Reserve Bank of Atlanta. That was the fastest such pace in 40 years, though it still trailed inflation.

Also Read | Turkey inflation jumps to 24-year high of 85.5% after interest rate cuts

Wages tend to follow inflation higher as workers seek to keep up with price increases. Those pay raises, in turn, can keep inflation high if companies pass on at least part of their higher labor costs to their customers in the form of higher prices.

Powell spoke after the Fed announced a fourth straight three-quarter-point increase in its benchmark rate. It was the latest in a series of unusually large hikes that have made mortgages and other consumer and business loans increasingly costly and heightened the risk of a recession.

Also Read | US consumer confidence takes a hit in October amid inflationary concerns

The Fed’s policymakers did open the door to the possibility of a smaller rate hike when they next meet in December. But Powell also said that in order to tame inflation, the Fed would likely have to raise rates high enough to weaken the job market. That could mean that hiring will slow in coming months or even that many employers will cut jobs and increase the unemployment rate.

So far this year, the Fed has raised its key short-term rate six times — from near zero in early March to a range of 3.75% to 4%, the highest level in 14 years.

Housing has absorbed the worst damage from higher borrowing costs. The Fed’s rate hikes have sent average long-term mortgage rates surging to around 7%, the highest level in two decades. Home sales have cratered as a result, and once-soaring home prices have started to slow.

Also Read | Elon Musk comment suggests Donald Trump won’t be back on Twitter before midterms

For now, the economy is still growing. It expanded at a 2.6% annual rate in the July-September quarter after having contracted in the first six months of the year. But much of last quarter’s growth was due to a spike in U.S. exports. By contrast, consumers — the primary driver of the economy — only modestly increased their spending beyond the rate of inflation.

With inflation still painfully high and the Fed making borrowing increasingly expensive for consumers and businesses, most economists expect a recession by early next year.