US stocks rallied Wednesday after an encouraging inflation report and blockbuster profits for some of America’s biggest banks.