In little more than a year, Walmart has spent nearly $4 billion acquiring e-commerce companies with thousands of workers. Last month, many learned that their potential out-of-pocket costs for medical expenses would increase in 2018 at a rate far exceeding the overall rise in health care costs — reaching thousands of dollars in many cases.