If the USPTO actually applied the required standards of nonobviousness and nontriviality, these stupid patents would never have been granted.
Unfortunately, their incentives are diametrically opposed to common sense. There is literally no downside for a USPTO examiner to rubber-stamp everything on his or her desk. They get to go home early to beat the traffic, while productive society is left to deal with the legal fallout. The net effect is to devalue legitimate IP while rewarding the trolls.
This, I think, is what really needs to change. Somehow, the feedback loop has to be closed in a way that incentivizes the examiners to throw out vague, egregious patents on abstract concepts.