Tech mogul Bill Gates gave nearly $8 billion to his ex-wife, Melinda Gates, in one of the largest known divorce-related payouts to date.