Trump prosecutor settles divorce avoiding testimony on alleged affair