One city’s fight against high prices for medications reveals a supply chain in which almost every link can benefit when those prices rise