NEW YORK—Stocks rallied to three-month highs on Wall Street Wednesday as investors welcomed a government report showing that inflation cooled more than expected last month. The encouraging inflation update sparked speculation that the Federal Reserve may not have to remain as aggressive about hiking interest rates as feared. The central bank has been raising rates…