Epic Games has settled a lawsuit with a former contractor accused of leaking Fortnite collaboration details, ending a high-stakes legal dispute.