In a unanimous decision, the court said a student who won a copyright case over imported textbooks should be able to seek payment of legal fees from the book’s publisher.