Ironically by killing Google you highly likely will put Mozilla into a surviving. I doubt they will figure out how to deliver any new “big” features without being able paying their talented devs without a such funding.
It doesn't "fund" it - it buys its position as the default search engine in Firefox, which makes up the bulk of Mozilla's income. In this theoretical world where Google actually goes away, presumably some other company would want to pay for that position.