Streaming company’s decision will end months-long saga over future of one of Hollywood’s best-known studios