Google could owe Oracle Corp billions of dollars after an appeals court said it didn’t have the right to use the Oracle-owned Java programming code in its Android operating system on mobile devices.