The thing is, even if Facebook used all of their cash for lobbying against software patents, there are many more entrenched companies on the other side of the fence that have spent billions already on patents and will defend their investment and "competitive advantage". That's what Google realized and they bought Motorola.
Which is why I fear that Yahoo winning over Facebook wouldn't start a lobbying war against patents. But instead, Facebook would simply become one more in the list of patent supporters.
I think that it would be better if Yahoo loses remarkably. Such as that it becomes reference for future judges to take better caution with software patent lawsuits. Which would slowly "reform" the system, instead of a fast revolution with new legislation. One can hope.