A former assistant sued Warner Bros., alleging she faced racial and sexual harassment from the show’s writers.