and using some of that money for stock buybacks and increased dividend payouts helps many
Yes, it helps the shareholders and many people have a stake via mutual funds, etc.
The problem is the repatriation was supposed to lead to more business investment and therefore long term growth, but that hasn't happened.
The corporations didn't invest the money, they gave it to the shareholders.