All this time complaining about companies not investing in research and development for future prosperity and now when they actually do so it is suddenly outright immoral?
Glancing over the last few decades of tax returns it looks like they are claiming a lot of tax credits for R&D, so much so that if someone had a closer look they might find some Fraud, Waste or Abuse.
If the company does get a return, then the R&D wasn't wasteful.
And regardless, the tax code doesn't and shouldn't (IMO) differentiate there, to encourage companies to take risks.