Walmart’s pharmacy footprint is poised for its most meaningful expansion in decades, thanks to shifting capital expenditure priorities that have begun to favor more aggressive expansion of smaller stores.