The billionaire has ended his White House bid – but not before spending a whole lot of money on his campaign.