I forgot to mention that L and R are inside two-port network. Those circles are contacts. Does this help you?
Only to confirm my suspicions that there is more to this question than you have shown
You asked "how do we get \$U_1\$. Since an equation for \$U_1\$ is given I assume you want to know how to get that equation?
As I said, my first step would be to find the impedance of the parallel combination of \$L\$ and \$R + Z_b\$ using the short-cut \$Z_p = \frac{Z_1 Z_2}{Z_1 + Z_2}\$. If you put \$Z_1 = R + Z_b\$ and \$Z_2 = j \omega L\$, I think we have:
$$Z_p = \frac{(R + Z_b) j \omega L}{R + Z_b + j \omega L}$$
Now you have your divider of \$Z_g\$ and \$Z_p\$ - plug those into the first equation given and the equation for \$U_1\$ readily drops out.
However, the diagram is labelled with \$I_1, I_2\$ and \$U_2\$ which leads me to suspect that the original question also specified a method for the solution (e.g. "using Kirchhoff/Thevenin/nodal analysis, "... or whatever), and now you mention "two port network".