Waste Management, the nation’s biggest recycler, is spending $1.4 billion to become more efficient. How it could pay off.