What is the projection of a vector onto an affine set?
\[ \textstyle \proj_{W(a, U)}(x) = UU^\top x + (I - UU^\top )a. \]
\[ J(z) = \norm{a + Uz - x} = \norm{Uz - (x -a)}, \]
is $z^\star = U^\top (x-a)$. So the projection of $x$ onto $W(a, U)$ is\[ a + Uz^\star = a + UU^\top (x - a) = UU^\top x + (I - UU^\top )a. \]