When what's legal and what's sustainable for the society are not aligned, there are likely one of two results: 1) Law is changed to be more sustainable or 2) the society suffers.
But hey, more power to those who can screw over everyone else for their tax free money!
If what the company is doing is not sustainable, the company will fail, as it should. If what society is doing is unsustainable, it will fail, as it should. It's called capitalism and if you leave it alone, you'd be surprised at how good it works.
What would you propose? We block companies from doing these kinds of inversions? They'd just transfer their entire operation overseas and then the US would see zero percent of that income. There are any number of other countries that would LOVE to have them, as is evidenced by their lower tax rates and success in luring said companies.
The stupidity is the assumption you can somehow control these companies, or punish them for their actions. Controlling them is impossible so long as there are other places to do business. Punishing them does nothing but punish those who consume their products or services. Putting them out of business adds to unemployment. Banning their products or services from the US market would damage consumers *and* employees. You know...employees...those people who work hard every day to take home a paycheck to their families. Not everyone at a corporation is Scrooge McDuck burning hundred dollar bills to warm their gold-plated mansion.
No, the answer is to lower our corporate tax burdens and win this business back to US shores and the US tax system. It doesn't take a genius to realize that 15% of something is better than 26% of nothing.