The deal is among Hollywood's biggest media shake-ups and will create one of the largest film studios in the world.