While Microsoft is making a tidy profit from these patents, keep in mind that they have a +- 3% stake in Facebook. I'm sure they would love these Yahoo! lawsuits to go favorably for Facebook.
Then again, Yahoo search is powered by Bing. Microsoft has a stake in both aspects of the fight. I expect they'll be playing mediator, doing their best to make sure no one loses.