I see one option or Apple. Invalidate the EULA.
Apple needs to appeal this decision if they lose. Then, they need to put forward a very weak argument supporting the EULA. When the court finds that the EULA is invalid, Apple can say that "We don't lease the software, the EULA (as a concept) is invalid. The end-user owns the software."
This might not get them out of hot water, but it would (hopefully) invalidate many other EULAs out there, and change the whole way software is delivered. Software should be a purchase, but if you want support or new versions, you have to pay for that. If you want to take our software, reverse engineer it, whatever, have at it. However, if the company finds that you used copyrighted code in a similar product you sold, then they would have a potential copyright issue against you.
The first sale doctrine should apply to hardware, software, and firmware. If I buy it, I should own it outright. If I want to flash it, potentially brick it, whatever, that's my business. If I ruin it, then I'll have to buy another.