Supermarket chains have for years looked to pharmacy revenue to drive top-line growth. The Inflation Reduction Act is upending that strategy.