Oracle was forced to subsidize Google’s commercial development of its own proprietary version of Java and the success of its Android smartphone—what the intellectual property laws forbid.