The dramatic clash between creative control and business interests that nearly derailed NCIS’ spinoff success.