Three U.S. Supreme Court justices earned more than $100,000 last year from book projects, with Justice Amy Coney Barrett taking the largest amount—$425,000 as partial payment of a multimillion-dollar book advance.