All large global corporations are constantly involved in legal battles, because that's how conflicts are resolved in our society. Sometimes they win. Sometimes they lose and are convicted. Quite often they settle before they are convicted. That's not the difference between good and evil.
Microsoft took the view that they could bundle IE with Windows and that they could license Windows to PC manufacturers on an exclusive basis. A US court decided that given their market share they were not allowed to do that.
Google is in a similar bundling conflict now with the European Union. So far Google has lost and they may or may not ultimately lose before the European Court of Justice. Or they may settle before it comes to that.
In 2015 Apple, Google, Intel and Adobe were caught trying to keep wages down by agreeing not to poach each others' employees. They paid $415 million to settle that case.
Please look up [Company Name] litigation on Wikipedia and you will find countless cases of large companies being convicted for something or settling this or that case.
Is any of this evil? That is a question everyone has to answer for themselves in each particular case, because "evil" is a moral term. The simple fact of losing a legal battle does not qualify as evil according to my moral compass.
I'm not interested in doing business with any company that has the track record of acquiring and killing as many products as they have. I've personally lost useful tools to them on multiple occasions and I don't use MS software for anything more than I'm forced to on provided hw for my employment.
My one Win10 laptop experience was enough to tell me that MS is still untrustworthy when it comes to forcing behavior on users.
If my work situation ever shifts enough to allow a Linux machine, I'll happily never look back.
Also, not getting convicted isn’t a very high bar.