Google LLC didn’t get an answer from the U.S. Supreme Court on whether the Java APIs it copied from Sun Microsystems were copyrightable.

But it got just about everything else it could have hoped for in a sweeping 6-2 decision Monday that ends its 11-year copyright clash with Sun’s successor, Oracle Corp.