I think each drug needs to be judged on its own merits.
Let me give you one example. The androgen deprivation drug Lupron, to treat prostate cancer, had its patent expire many years ago. However, the manufacturer made a very slight change and got a new patent, which restarted the clock.
The government paid for all the expenses to develope the drug, so the patent was owned by the FDA. The FDA then sold the patent for a relatively small number. The pharma company makes huge profits on it.
A Canadian company said they could deliver it for about $300/mon rather than $3,000/month the VA has to pay.
The SCOTUS ruling on agencies should affect the FDA or CIAs ability to monetize companies such as Facebook, Microsoft, or patients. Congress is both lawmaker and power of the purse.