The majority of lawsuits filed in federal court "settle out of court" with a negotiated agreement between the plaintiff and defendant.
For the most part, the law requires that you first endeavor to settle your discrimination complaint by experiencing the managerial protest process before you document a claim. Or you can't go specifically to court to sue an office. Or maybe, you first need to attempt and resolve your grievance through the regulatory objection process set up by Congress.