Friendly Suit

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.