Walt Disney Co. is buying a huge chunk of 21st Century Fox in a deal that will reshape the media industry.