Wrong Solution
If $\Omega = \emptyset$, then we are done.
The plan for nonempty $\Omega$ (as hinted at by JSchlather and Tomás) is to show that $f(\overline{U}) = \overline{U}$ for any connected component $U$ of $\Omega$.
The result follows from this, since the connected components exhaust $\Omega$.
We already know $f(\overline{U}) \subset \overline{\Omega}$.
Now, $\overline{U}$ is connected (since $U$ is connected), so $f(\overline{U})$ is connected, since the continuous image of a connected set is connected.
Consequently, $f(\overline{U})$ lies entirely within one connected component of $\Omega$.
Since $f(x) = x$ on $\partial U \subset \overline{U}$, it must be that $f(\overline{U}) \subseteq \overline{U}$.
Therefore, all we need to show now is that $f(\overline{U}) \supseteq \overline{U}$.
Let $B \supset \overline{U}$ be a closed ball neighborhood of $\overline{U}$. Extend $f$ to a function $F: B \to B$ by the identity map on $B\smallsetminus\overline{U}$. Then $F$ fixes the boundary of $B$ (in addition to lots of other elements of $B$), and is continuous. Also $F$ takes $B\smallsetminus\overline{U}$
to itself, and $\overline{U}$ to itself. So it will suffice to show that $F$ is surjective for any map $F: B \to B$ from a ball to itself fixing the boundary.
Let $N_1 \supseteq N_2 \supseteq \cdots$ be a decreasing sequence of closed balls whose intersection is $x$. Let $K_i = F^{-1}(N_i)$. Then $K_1 \supseteq K_2 \supseteq \cdots$ is a decreasing sequence of closed sets such that $F^{-1}(\mbox{int }N_i) \subset K_i$; in particular, $K_i$ is nonempty. (The statement in bold is wrong, as pointed out by @G. Smith.)
Since $B$ is compact, the intersection of all the $K_i$ is nonempty; call it $\mathcal{K}$. Then $f(\mathcal{K}) \subseteq N_i$ for all $N_i$. Therefore $f(\mathcal{K}) = x$.
Now, $x$ was arbitrary, so $f$ is surjective, and we are done.