(CNBC) — Stocks rose in another volatile session on Wednesday after a summary of the Federal Reserve’s meeting in December reiterated comments from the central bank’s chairman from last week about patience regarding monetary policy.

The Dow Jones Industrial Average rose 89 points, posting its fourth straight day of gains. The S&P 500 gained 0.4 percent as the tech and energy sectors outperformed. The Nasdaq Composite climbed 0.87 percent as Apple gained 1.7 percent. Energy gained 1.5 percent as a sector, boosted by a 5.2 percent in U.S. crude prices.

Equities pared gains in the last hour of trading as it appeared a meeting over the shutdown between President Donald Trump and Democratic leadership did not go well. The president tweeted the meeting was “a total waste of time.” Sen. Chuck Schumer said the president walked out of the meeting.

Note: Read our discussion guidelines before commenting.