Once renowned for reinvesting into high-growth opportunities, tech giants are paying more money back to shareholders.