With a $4 billion investment, the company is pushing faster fulfillment into small-town America — reshaping competition for the final mile