The making of U.S. Supreme Court majority opinions