By Anna Isaac and David Benoit

U.S. stocks rose Wednesday ahead of a Federal Reserve meeting that is expected to detail the central bank's latest views on economic growth and inflation prospects.

The S&P 500 rose 0.1% and the Dow Jones Industrial Average rose 157 points, or 0.6%, as both aim for their fourth-straight session of gains.

The Nasdaq Composite Index slipped 0.6% as big tech stocks sold off.

The indexes are all still down this month, with the Nasdaq off more than 5% in September.

Investors are weighing the prospect of continued support from the central bank against further delays to a fiscal spending package expected from lawmakers. While the Fed isn't expected to change interest rates Wednesday, policy makers may revise closely watched economic and inflation projections.

"We're expecting to see an upgrade in the growth numbers for the U.S.," said Edward Park, deputy chief investment officer at Brooks Macdonald. "Last time, they were very bearish compared to what the market had been expecting."

The meeting is the Fed's first since forging a new framework governing how to conduct policy over the long run. Investors are eager to get more guidance on how changes will work in practice.

"There is room for market disappointment today if we don't get any further details," said Seema Shah, chief strategist at Principal Global Investors. "What is too long for inflation to be above 2%? How far above that does it need to go before they start tightening?"

In bond markets, the yield on the benchmark 10-year U.S. Treasury ticked down to 0.670%, from 0.678% Tuesday.

Investors are also continuing to assess the prospects for additional government spending, with negotiations complicated by calculations surrounding the November elections. On Tuesday, House Speaker Nancy Pelosi said the chamber should remain in session until lawmakers can strike a bipartisan agreement on new coronavirus relief. White House adviser Jared Kushner said any deal could be a ways off.

Markets would likely cheer more government action, but have grown pessimistic on the odds.

JPMorgan strategists recently raised their S&P 500 target for this year to 3600, predicting another nearly 6% in gains. But that was based on stronger corporate earnings and economic data, as they have tempered their expectation for more stimulus.

"When I look at where the stimulus talks are, the odds of something getting done are very, very slim," Joyce Chang, the bank's head of research, said Wednesday. "Both sides are far apart."

Instead, Ms. Chang said, investors are turning their questions increasingly toward the U.S. elections and trying to plan for a drawn-out result.

Retail spending rose 0.6% in August for the fourth straight monthly increase, according to data from the Commerce Department, but at a slower pace than expected as some extra unemployment benefits ran out.

The energy sector helped lead the S&P 500 higher.

Brent crude, the international energy benchmark, rose 3.9% to $42.10 a barrel after data showing that U.S. crude inventories unexpectedly declined. Hurricane Sally, which churned through the Gulf of Mexico and slammed into Alabama as a Category 2 storm this morning, has curtailed offshore oil production and is likely to further hit U.S. supply.

In individual moves, shares of FedEx rose 6% as one of the best performers. The delivery company posted the highest quarterly revenue in its history as the coronavirus pandemic spurred residential-shipment levels normally seen during the holiday season.

The Dow Jones Transportation Average was headed for a record close, the first in two years.

Facebook shares slipped 2.4% after The Wall Street Journal reported that the Federal Trade Commission was gearing up to file a possible antitrust lawsuit against the company, in a case that would challenge the company's dominant position in social media. Other tech stocks were sliding as well, including Apple down 1.9%.

Still, two initial public offerings soared in their opening moments as investors continue to gobble up technology stocks. Snowflake, a cloud-based data management provider, opened at $245 a share after pricing at $120 in the biggest technology deal of the year.

The far smaller technology company JFrog opened about 60% higher than its IPO.

Overseas, the pan-continental Stoxx Europe 600 index rose 0.6%.

In Asia, major equity indexes ended the day on a mixed note. Japanese stocks edged higher thanks to gains in e-commerce and online-services stocks, sending the Nikkei 225 index up less than 0.1%. China's Shanghai Composite Index ticked down 0.4%.

Write to Anna Isaac at anna.isaac@wsj.com and David Benoit at david.benoit@wsj.com