Note, though, that Google in the middle years of this dispute sought to acquiesce to a class-action settlement with the Author's Guild. That would have more-or-less abandoned the (strong and ultimately successful) fair-use argument, and set up a system where Google and the Author's Guild were economically aligned, with a precedent against other (less deep-pocketed) groups who might want to make a similar fair-use argument in the future.
Third parties including the American Libraries Association, EFF, and ACLU objected to the potential negative effects on competition, privacy, and free-speech of that proposed settlement, which helped prevent it from being accepted by the courts. That forced Google to fall back to its original defense, and led to this broader win for fair-use principles. For more details, see:
https://en.wikipedia.org/wiki/Google_Book_Search_Settlement_...