You could also just check, for $v = v_1 + v_2$ and $w = w_1 + w_2$ where $v_1, w_1 \in W$ and $v_2, w_2 \in W'$, that \\[ \langle Uv, w\rangle = \langle v_1 - v_2, w_1 + w_2\rangle \\] is equal to $\langle v, Uw\rangle$. Use the linearity of the inner product and that, e.g., $\langle v_1, w_2\rangle = 0$.