S&P 500, Dow Jones, Nasdaq post modest gains on Fed’s aggressive inflation stance