To be fair, Mozilla has come out with a lot of new services that have dramatically decreased their dependency on Google. They went from over 95% of their revenue being google royalties to less than 70% just in the past half decade
That’s the most likely bet they are making, similar to Apple/Android or Safari/Chrome. Spending a minor fraction of your revenue to avoid anti-trust probably makes sense for them.