It actually makes sense for them to defend the developers: after all, would you work in an ecosystem where you can get sued at any time without being protected by said ecosystem's owner?
If Apple doesn't succeed in the courtroom, I can't imagine them having any choice but to lay down a significant amount of money to either get a license that covers the app developers or to buy Lodsys outright.