NEW YORK — Warner Bros. Discovery to split into two public companies, separating its streaming and cable operations.