Actually, like all good lawyers, Google had multiple defenses:
1. The APIs aren't copyrightable
2. Even if they are, we didn't copy enough to matter
3. Even if we did, we did it under fair use
4. Even if we didn't meet fair use, Sun had already given us permission via CEO and other statements