Microsoft got in trouble for a good deal of illegal things they did to protect the Windows monopoly from Java :) Integrating IE into the OS was fine in itself, but part of the bigger strategy for which they were sentenced.
Microsoft biggest crime was they didn’t spend any money lobbying. Apple doing the same thing Microsoft did and worst, you cannot even change the default, yet no anti-trust on Apple. Different is Apple one of the biggest spender on lobbying.