Stocks closed higher Wednesday as Moderna and a bond buyback boosted equities.