U.S. stocks rose while bond yields and the dollar fell after the Federal Reserve said it would raise interest rates.

Stock gains were broad Wednesday, with all but one of the S&P 500 sectors finishing higher after Fed officials indicated they expect to raise short-term interest rates three times this year. Some investors said they viewed rising rates as a sign of economic strength, lifting stocks along with hopes for tax cuts and increased government spending under the Trump administration.

Remarks by central bank officials in the weeks leading up to the Fed meeting largely centered on how the case for raising rates had become stronger in light of improving economic data. That had sparked concern among some investors who worried the Fed may be more aggressive and raise rates four times in 2017.

Signaling that there will be three rate increases in 2017 made the announcement “a bit of a dovish hike,” that should continue to buttress major stock indexes, said Tony Bedikian, head of global markets for Citizens Bank.

“The Fed has pretty well telegraphed ahead of time they’d be pushing for a rate rise here, acknowledging the labor market has been quite strong and inflation has been ticking up to their goal,” he said.