a court can settle a lawsuit