The ruling could reshape the rules of how other businesses can make money on the Android operating system.