As explained in abx's comment, the canonical divisor of your surface is given by $$K_X=-3 \pi^*L + \sum E_i,$$ and this is precisely the class of $-\widetilde{C}_1$ (note that $C_1$ is a curve in $\mathbb{P}^2$, so I put the tilde to specify that we are considering its strict transform in $X$).
Now, $\widetilde{C}_1$ is the strict transform of a smooth cubic curve: since the self-intersection number of a cubic is $9$ and you are blowing up nine pointpoints on it, the self intersection-intersection of the strict transform is $(C_1)^2=9-9=0,$ as claimed.
Finally, the strict transform of your pencil of cubics is a base-point free pencil of elliptic curves in $X$, providing an elliptic fibration $\pi \colon X \to \mathbb{P}^1$, endowed with nine sections corresponding to the nine exceptional divisors of the blow-up. By By construction, the curve $\widetilde{C}_1$ is a fibre of $\pi$, hence it isis a "vertical divisor", after all.