Suppose that $Y,U$ are independent random variables such that $h(Y)=U+Y$ for some (Borel-measurable) function $h$. Then $U=Z:=h(Y)-Y$ and $U,Z$ are independent. So, $U$ is independent of itself. So, $U$ is constant almost surely (a.s.): $P(U=u)=1$ for some real $u$. (Indeed, if $U$ is not constant a.s., then the support of the distribution of $U$ contains at least two real numbers $a,b$ such that $a<b$. Take any $c\in(a,b)$. Then the independence of $U$ of itself implies $0=P(U<c,U>c)=P(U<c)P(U>c)>0$, a contradiction.)
Vice versa, if $P(U=u)=1$ for some real $u$, then $h(Y)=U+Y$ a.s. with $h(Y):=u+Y$.
Thus, if $Y,U$ are independent, then there exists a (Borel-measurable) function $h$ such that $h(Y)=U+Y$ if and only if $U$ is constant a.s.