Testimony from billionaire’s confidante Shivon Zilis reveals wrangling over the future of the AI lab that led to lawsuit