Proof (closed graph theorem)
Since both $X$ and $Y$ are complete, so is $X \oplus Y$.
Consider $$ \begin{align*} S: X &\to Γ(T) \subseteq X \oplus Y \\ x &\mapsto (x, Tx) \end{align*} $$ which is a linear bijection. Its inverse $$ \begin{align*} P_X|_{Γ(T)}: Γ(T) &\to X \\ (x, y) &\mapsto x. \end{align*} $$ is the restriction of the projection map $P_X: X \oplus Y \to X$, which is continuous.
Therefore by the inversion theorem, $S = P_X|_{Γ(T)}\inv$ is continuous. Thus $$ \begin{align*} T: X \xrightarrow{S} Γ(T) \xrightarrow{P_Y} Y \end{align*} $$ is continuous.