(Reuters) - The S&P 500 hit a record high on Thursday, lifted by Wall Street’s expectations that the Federal Reserve will cut interest rates as soon as next month to keep the U.S.-China trade war from stalling economic growth.

All 11 S&P 500 sector indexes logged gains for the session after the U.S. central bank left rates unchanged at the end of its two-day policy meeting on Wednesday, but pledged to “act as appropriate” to sustain economic health.

Wall Street’s main indexes have gained in recent weeks on expectations of a rate cut and hopes of a revival of trade talks between the United States and China at the Group of 20 meeting next week in Japan.

The benchmark S&P 500 index, which has risen about 7% so far in June, closed above its previous record high close on May 3.

“It was always going to be difficult for the Fed to live up to high market expectations. While the bar was set high, policymakers appear to have cleared it with ease while also leaving themselves with plenty of outs,” said Craig Erlam, senior market analyst at OANDA in London.

A more-than-expected dovish Fed led to U.S. Treasury bond yields tumbling, with the benchmark 10-year yields dropping below 2% for the first time in more than 2-1/2 years.

The energy index jumped 2.21%, the most among the 11 major S&P sectors, as oil prices surged over 5% on renewed tensions in the Middle East after Iran shot down a U.S. military drone.

“This new high on the S&P 500 could be fool’s gold,” warned Jake Dollarhide, chief executive officer of Longbow Asset Management in Tulsa, Oklahoma. “We have this simmering tension in Iran that could spill over and create all kinds of global fears.”

The Dow Jones Industrial Average climbed 0.94% to end at 26,753.17 points, while the S&P 500 gained 0.95% to 2,954.18.

Traders work on the main trading floor after the opening bell at New York Stock Exchange (NYSE) in New York, U.S. June 20, 2019. REUTERS/Brendan McDermid

The Nasdaq Composite added 0.8% to finish at 8,051.34.

Apple rose 0.8% and briefly hit $200 a share for the first time since early May. The iPhone maker is viewed as a major potential casualty in Trump’s trade war, should it worsen.

Shares of Slack Technologies Inc, the fast-growing workplace messaging platform, soared almost 50% in their public trading debut, valuing the company at more than $25 billion.

The technology sector rose 1.43%, with Oracle Corp leading the charge. Its shares jumped 8.2% after the business software maker forecast current-quarter profit above estimates. Its gain fueled the S&P 500 more than any other stock.

Cruise operator Carnival Corp slid 7.6%, the most among S&P companies, after cutting its profit forecast for the year on the Trump administration’s sudden ban on cruises to Cuba and weakening demand in Europe over political uncertainty.

Rivals Royal Caribbean Cruises Ltd and Norwegian Cruise Line Holdings Ltd dropped over 2% each.

Buoying sentiment was data which showed the number of Americans filing applications for unemployment benefits fell more than expected last week, pointing to underlying labor market strength despite a sharp slowdown in job growth in May.

Volume on U.S. exchanges was 7.5 billion shares, compared with the 6.9 billion-share average for the full session over the last 20 trading days.

Advancing issues outnumbered declining ones on the NYSE by a 3.14-to-1 ratio; on Nasdaq, a 1.44-to-1 ratio favored advancers.

The S&P 500 posted 103 new 52-week highs and three new lows; the Nasdaq Composite recorded 127 new highs and 46 new lows.