That's where political pressure comes in. For example, Denmark is making many billions of dollars each year from the sale of GLP-1 drugs to the US. The US could just choose to negate those patents, stop those sales, and manufacture the drugs domestically with immediate effect. Other such levers like these probably also exist.