Google's book-scanning project is legal, U.S. appeals court says