The comedian and her second husband resolved their split in court, with a prenuptial agreement guiding the settlement.