Amicus Curiae

Latin for "friend of the court." It is advice formally offered to the court in a brief filed by an entity interested in, but not a party to, the case.

Source: U.S. Courts

Someone that gives advice to the court about the law in a case, but isnt part of the case. Comes from the Latin for "friend of the court."

Source: California Courts.