Google shifted $23 bln to tax haven Bermuda in 2017
reuters.com
reuters.com
They can be sued for anything, just like anyone, but there is a large body of corporate case law supporting the use of business judgment to achieve goals other than short-term maximization and typically have E&O coverage as well to provide some coverage for nuisance lawsuits and cases other than personal misconduct or conflicts of interest. So, sue away, but you almost surely won’t win if the board pursued a lawful strategy other than the one you as a shareholder prefered.
Read the Hobby Lobby case as a start.
Quote from Justice Alito in that opinion: While it is certainly true that a central objective of for-profit corporations is to make money, modern corporate law does not require for-profit corporations to pursue profit at the expense of everything else, and many do not do so. . . If for-profit corporations may pursue such worthy objectives, there is no apparent reason why they may not further religious objectives as well.
Now, I would hope that use of tax havens, selling user data, etc fall into that same category, but clearly the math is different when we are talking about billions of dollars.