Earlier quoted context omitted.
If I recall correctly, the nine line question wasn't decided by the supreme court, but the API question was. The Supreme Court did hold that the 11,500 lines of API code copied verbatim constituted fair use. https://www.supremecourt.gov/opinions/20pdf/18-956_d18f.pdf
> The Supreme Court did hold that the 11,500 lines of API code copied verbatim constituted fair use. Yes, because it was _transformative_, in a clear way. Because an API is only an interface. Which makes that part of that decision largely irrelevant to the topic at hand. > Google’s limited copying of the API is a transformative use. Google copied only what was needed to allow programmers to work in a different compu-…
If they felt the nine line function made Google's entire library an unlicensed derivative work, they would have pressed their case.