Disney is buying a large part of the Murdoch family’s 21st Century Fox for about $52.4 billion in stock, including film and television studios and cable and international TV businesses, as it tries to meet competition from technology companies in the entertainment business.