Proof (Maschke, complete reducibility using inner product)

We'll apply Weyl's unitary trick to obtain a $G$-invariant inner product $\langle ,\rangle$ on $V$.

Let $W$ be the orthogonal complement of $U$ with respect to $\langle ,\rangle$. Since $U$ and $\langle ,\rangle$ are $G$-invariant, so is $W$: indeed if $w\in W$, then for any $u\in U$, $$ \begin{align*} \langle gw, u\rangle = \langle w, \underbrace{g\inv u}_{\in U}\rangle = 0. \end{align*} $$