At some point there's always people making decisions. The abstract soulless entity "Google" may not have any moral responsibilities, but Google's owners do.
Even if this is entirely true, it is quite possible that fighting the law more aggressively may be in their share holders best long-term interest. An excessive focus on the extremely short term has caused many businesses quite a lot of trouble over the last century. For a really interesting analysis of the decline of a machine-tool manufacturing company (the most thorough discussion of the issues I know of) see Max Holland's When the Machine Stopped, about the decline and collapse of Burgmaster, a mid-century "start-up" by an inventor.
I was talking about the prospect of them breaking the law.
This is true, but you're assuming that the shareholder's only interest is financial. I daresay that at least some of them bought those shares because they believe in the "do no evil" motto, and believe that Google can make the world better.
To this extent, doing the right thing despite monetary costs may be what the shareholders want.
I'm a shareholder. It's not much, but it does imply a tiny bit of ownership. And so, as a shareholder, I want Google to be totally righteous even at the risk of going bankrupt.