The network extended its commitment to the popular host just weeks before Stephen Colbert takes over “The Late Show” on CBS.