In New York, as shoppers went online, Amazon went on a warehouse-buying spree.