what is Google really getting out of this?
Public and official political backing from the U.S.
This will put more pressure on China for threat of other multi-nationals pulling part or all of their business out of the communist state.
At the moment the U.S. can't denounce the attacks officially because they don't have any connection other than a U.S. based business was supposedly attacked by Chinese operatives. By bringing in a U.S. government organization in to the mix, Google can put more pressure on the Chinese government for answers and immunity from future attacks.
Saying all that, I'm sure that this communication band between the NSA and Google means nothing in the grand scheme of it all. China will continue to operate as it has in the past, regardless if Google pulls out of China or not, and I don't think it's going to affect any of the other multi-nationals operating in China. Money vs a bit of bad publicity from attacks or security breaches over a few years, most will take the money and deal with the circumstances when they arise. So I don't see anyone else following Google's footsteps if they do pull out.