Stocks rose on Wednesday, bolstering their gains for the month, after the Federal Reserve opened the door for looser monetary policy in the near future.
The Fed kept interest rates unchanged at the meeting, as was widely expected. While not outright signaling a cut was ahead this year, the Fed did drop the word "patient" from its statement and said it would "act as appropriate" to sustain the economy.
The central bank's rate projections, released alongside the statement on Wednesday, showed that eight Fed members see a cut this year, which traders took as further sign the central bank was close to cutting rates. Its median forecast, however, still reflected no cuts this year, but additional easing in 2020.
Fed Chair Jerome Powell also said in a news conference after the announcement that some Fed officials believed the case for easier monetary policy had strengthened.
Health care stocks, which typically perform well after the Fed cuts rates, were the best performers on Wednesday. The sector rose 1%, led by gains in Allergan and DaVita.
"This was our baseline scenario. The Fed opened the door for cuts. They maintained some independence from some of the outreach for lower rates coming out of the administration," said Gregory Faranello, head of U.S. rates at AmeriVet Securities. "Short term, it's going to depend on the data. If the data warrants a cut, the chairman is saying the Fed is prepared to adjust policy."
Treasury yields fell following the announcement, pressuring bank shares. The benchmark 10-year yield traded down at 2.02%. Citigroup, Morgan Stanley, J.P. Morgan Chase and Bank of America all traded lower.
Traders are pricing in easier monetary policy as soon as July. They were also betting on rate cuts coming in September and December, according to the CME Group's FedWatch tool.
Expectations of lower rates helped the market rebound this month after a torrid performance in May. The S&P 500, Dow and Nasdaq are all up more than 6% in June.
Those expectations increased amid lingering trade worries and weaker economic data. China and the U.S. hiked tariffs on billions of dollars worth of their goods, stoking fears that tighter trade conditions could slow down the global economy.
"It feels like the Fed doesn't know how to react to that," said Kevin Barry, Kevin Barry, chief investment officer at Captrust Advisors. "The main actors are Trump and Xi. If they are trying to increase animal spirits, then cutting rates won't do that. Trump is the one that can increase animal spirits, not the Fed."
"Animal spirits will be increased by a settlement between China and the U.S.," he said.
The Fed's meeting came after Bloomberg News reported the White House looked for a way to demote Powell earlier this year. Larry Kudlow, director of the National Economic Council, told reporters Tuesday that Trump is not planning to demote Powell, however.
Powell said in the news conference that he intends to fully serve his four-year term, noting "the law is clear" on the matter.
—CNBC's Silvia Amaro and John Melloy contributed to this report.
Clarification: This story has been updated to reflect the Fed hinted at a potential rate cut, not a hike.