The major averages rallied on Wednesday after the Federal Reserve maintained its 2025 outlook for two interest rate cuts.