I did not go into details as to what Google misbehaviors were.
But I wonder what "behaving poorly" is. There is legal and illegal stuff.
Companies give jobs to people, not only Google. It is natural, yes, natural, logical, to want to pay less to people. It is also natural that people want to be paid more. A salary is never high enough for an employee. A salary is never low enough for an employer. I do not say this from an ethical point of view, I say how humans act.
Also, with all these regulations, unfortunately, government-company collusion is also there, not only among companies. I wonder if markets were more free than they are if the collusion among companies (given that governments cannot regulate as much) would be as effective. I just wonder, because I am not sure, but I am confident it would be better than what we usually see in the media, which much of it is the consequence of disproportionate power for regulating.
About behaving "poor" each person has her own ethics. Things that look ok to someone can look bad to others. And many look bad to most of us, especially when it is someone else who does it... which is curious. Companies are greedy, when it is not our company. Companies are bad, when it is not our company... our neighbor does not deserve what we deserve, because we are better.
So the only measure by which we should measure companies is by law (even I find some laws absurd, but that is another topic). If some laws and regulations give power to make excuses that favor corruption via favoring friends, then maybe the problem is the capacity to regulate.
I do not think an independent company would work for a government in "unethical" terms (as for many of our mostly accepted definition of unethical, like helping military research or giving surveillance tech to governments) if that government cannot give them something in exchange. We see the pattern? The problem is that exactly. Do not look further.