Netflix has agreed to buy Warner Bros. Discovery's TV and film studios for $72 billion in a blockbuster deal that would reshape the media landscape.