This is exactly the opposite of what you want. Investment goes where the margins are. That’s why huge amounts of money gets invested in stuff like Facebook. Making it relatively unprofitable to create lifesaving drugs just ensures that investment won’t flow into that area.
Apple makes about the same profits as the total US pharma industry, and that amounts to a tiny fraction of US healthcare spending. Too much profit is not the problem.