friendly suit

Definition from Nolo’s Plain-English Law Dictionary

A lawsuit brought by two parties, not as adversaries, but by agreement in order to resolve a legal question that affects them both. For example, two companies might bring a friendly suit to court in order to clarify the legal interpretation of a contract between them.

Definition provided by Nolo’s Plain-English Law Dictionary.