Horacio Gutierrez landed one of the top legal jobs in the world last December—general counsel of The Walt Disney Co. But just months into the job, the board has fired Bob Chapek—the man who hired him—a sudden shift that presents the first big test for the former Spotify chief legal officer.