Settle (something) out of court

To settle a disagreement without having to go through a court of justice.

The company was able to settle their lawsuit out of court.