Paramount is set to buy Warner Bros. Discovery after Netflix dropped out of bidding, setting up another major Hollywood merger.