Deerfield-based Walgreens Boots Alliance Thursday said it has agreed to make a $5.2 billion investment in Chicago-based VillageMD to accelerate the opening of at least 600 Village Medical at Walgreens primary care practices in more than 30 U.S. markets by 2025 and 1,000 by 2027.