(Reuters) - U.S. stocks finished marginally higher on Wednesday as indexes gave up early gains after the Federal Reserve said it sees inflation rising this year, signaling it remains on track to boost interest rates again in March.

The Fed kept rates unchanged but, in a statement following its two-day policy meeting, it repeated that it expected that “further gradual” rate hikes will be warranted.

“The subtle message is that they will continue to press rates higher,” said Scott Kimball, director and portfolio manager at BMO Global Asset Management.

The central bank raised rates three times last year and sees three additional hikes in 2018 even as it continues to trim its balance sheet on a largely pre-set schedule.

“They’re more confident in their expectations of rising inflation,” said Kevin Logan, Chief U.S. Economist at HSBC Securities.

Bolstering the Fed’s view of a solid economy, ADP published a report on Wednesday showing 234,000 private sector jobs added in January compared with 185,000 expected by analysts. The U.S. Labor Department is due to release its more comprehensive report on Friday.

The Dow Jones Industrial Average .DJI rose 73.74 points, or 0.28 percent, to 26,150.63, the S&P 500 .SPX gained 1.47 points, or 0.05 percent, to 2,823.9 and the Nasdaq Composite .IXIC added 9.00 points, or 0.12 percent, to 7,411.48.

Traders work on the floor of the New York Stock Exchange (NYSE) in New York, U.S., January 31, 2018. REUTERS/Brendan McDermid

Stocks were lifted earlier Wednesday by a surge in Boeing BA.N which forecast better-than-expected full-year profits and said it expects to deliver a record number of commercial aircraft in 2018, sending its shares up 4.9 percent.

The aerospace giant was the biggest percentage gainer on the Dow, helping pull the blue-chip index out of its biggest two-day plunge since September 2016.

The selloff earlier in the week had been prompted by an increase in U.S. Treasury yields to multi-year highs. The U.S. yield curve flattened to a decade low following the Fed statement as traders sold more short-dated Treasuries.

Facebook FB.O shares dipped more than 4 percent in after-market trading after the social media giant reported results.

Among the S&P 500's 11 major sectors, technology .SPLRCT gave the biggest boost to the index.

Healthcare stocks continued to weigh on the three major U.S. indexes following a report on Tuesday that Amazon.com AMZN.O, Berkshire Hathaway BRKa.N and JPMorgan Chase JPM.N were joining forces to cut healthcare costs for its U.S. employees. The S&P 500 healthcare index .SPXHC fell 1.5 percent.

Analysts expect fourth-quarter S&P 500 earnings growth of 13.7 percent, up from 12 percent expected at the start of the month. So far, 37 percent of companies in the index have reported and 80.5 percent have come in above consensus estimates.

Advancing issues outnumbered declining ones on the NYSE by a 1.14-to-1 ratio; on Nasdaq, a 1.61-to-1 ratio favored decliners.

The S&P 500 posted 34 new 52-week highs and 3 new lows; the Nasdaq Composite recorded 82 new highs and 48 new lows.

Volume on U.S. exchanges was 8.05 billion shares, above the 7.18 billion average for the full session over the last 20 trading days.