NEW YORK (TheStreet) -- Stocks held onto modest gains through to market close on Wednesday after the Federal Reserve provided an upbeat assessment of the U.S. economic recovery.

The S&P 500 was up 0.22%, and the Dow Jones Industrial Average rose 0.36%. The Nasdaq added 0.45%, around 6 points short of its record close.

The economy rebounded at a modest to moderate pace over the period from early April to late May, according to the Fed's Beige Book, an anecdotal collection of economic conditions across the 12 districts. Consumer spending, a key GDP component that has lagged in recent month, was on the rebound as the metric increased in 10 of the 12 districts.

However, the energy downturn continued to hurt manufacturing growth with drilling declines in five districts, including Dallas and Kansas City, the central bank said.

"The tone of the latest Beige Book was somewhat encouraging as it points to further stabilization in economic activity as the headwinds to growth abate," said Millan Mulraine, deputy head of U.S. strategy at TD Securities. "The report signals a generally optimistic outlook among business contacts, which we see as a crucial sign that the soft-patch earlier this year is being seen as temporary."

Crude oil prices dropped nearly 3% and gave up a level above $60 a barrel ahead of Friday's meeting of the Organization of the Petroleum Exporting Countries. The group is expected to maintain current record production levels despite global oversupply.

"The OPEC stance is currently believed to be one of maintaining the 30 million barrel a day production level, which means the expectation of additional Iranian output is yet another bear in the market - currently oversupplied by 2.5 million barrels a day," said Daniel Holder, commodity analyst at Schneider Electric.

West Texas Intermediate settled at its lowest level in a week, down 2.6% to $59.64, though remained around $20 higher than a January low.

European Central Bank President Mario Draghi said in a press conference that eurozone inflation had "bottomed out" at the beginning of the year due to monetary policy, falling oil prices and a weaker euro. The ECB raised consumer inflation forecasts to 0.3% for the full year, up from a previously expected flat reading.

Draghi's remarks caused German government bonds to slip on Wednesday with the yield on Germany's 10-year bond briefly rising to 0.82%, its highest level since November, before retreating slightly. U.S. Treasuries followed suit with the 10-year bond hitting a three-week high of 2.34%.

Utilities, often viewed as a lower-risk, low-growth equities alternative to bonds, sold off on the spike in yields. ConEdison (ED) - Get Report, Duke Energy (DUK) - Get Report, National Grid (NGG) - Get Report and PG&E (PCG) - Get Report were all lower, while the Utilities SPDR ETF (XLU) - Get Report fell 1.4%.

Crude inventories fell 1.9 million barrels in the week ended May 30. Analysts had expected a decline of 1.7 million barrels after a drop of 2.8 million barrels a week earlier. Inventories have been on the decline as U.S. oil producers shutter unprofitable rigs in the face of lower oil prices.

Non-manufacturing activity expanded at a slower-than-expected rate in May, according to the ISM Non-Manufacturing Index. The measure of the services industry fell back to 55.7, below forecasts for 57.2 after a 57.8 reading in April. Any reading above 50 indicates expansion.

The U.S. trade deficit retreated 19.2% in April to $40.9 billion after hitting a seven-year high of $50.6 billion in March that was tied to West Coast port closures. Economists expected a slightly wider deficit of $43.5 billion. The lower trade deficit will likely boost second-quarter GDP as the economy continues to comb out the kinks from port backlogs.

"The drop back in the trade deficit ... confirms that the spike in March was a temporary surge caused by the ending of the West Coast port dispute in February and possibly the timing of the Chinese New Year holiday," said Capital Economics chief U.S. economist Paul Ashworth.

The U.S. private sector added 201,000 jobs in May, the most jobs added in four months, according to the ADP jobs report. Analysts had expected an increase of 200,000 after 169,000 additions in April.

The private payrolls data foreshadows Friday's widely anticipated nonfarm payrolls from the Labor Department. Economists expect the U.S. economy to have added 225,000 jobs in May.

Groupon (GRPN) - Get Report recovered from earlier losses to gain 1.8%. The stock was lower earlier after Chief Financial Officer Jason Child announced his will step down at the end of July. Brian Kayman, vice president of tax and treasury, will act as interim finance chief.

Wendy's (WEN) - Get Report climbed 3.2% after announcing a $1.4 billion buyback. The company also increased its forecast for full-year earnings to 31 cents to 33 cents a share.

Guess? (GES) - Get Report was slightly lower despite swinging to a first-quarter profit of 4 cents a share from a loss of 3 cents a year earlier. Revenue slid 8% to $479 million.

Vera Bradley (VRA) - Get Report shares were down 13.1% after the company reported break-even earnings in the first quarter, 2 cents shy of estimates. Revenue of $101.1 million was down 10% from a year earlier.