ViacomCBS and Warner Bros. Television have agreed to a new syndication deal to keep the classic sitcom as part of its late-night lineup.