The deal means Netflix will takeover ownership of franchises including Harry Potter and Game of Thrones, and Warner Bros streaming service HBO Max.