A newly released opinion by the U.S. Justice Department’s Office of Legal Counsel reveals how the U.S. Marshals Service responded to a security threat against Justice Sonia Sotomayor during her U.S. Supreme Court nomination hearings in 2009.

The opinion justified the U.S. government’s use of an “unanticipated needs” fund to pay the security-related hotel expenses of the then-Supreme Court nominee.