Marfrig Global Foods said it is buying a 51% stake in US-based National Beef Packing Company for US$969m in a transaction that will make the Brazil-based firm the world's second-largest beef producer.