The best thing you can do is the following: for every $\epsilon > 0$ there exists a $C^1$ function $g: U \to \mathbf{R}^n$ so that \begin{equation} \mathcal{H}^n(\{ f \neq g \} \cup \{ Df \neq Dg \} ) < \epsilon. \end{equation}\begin{equation} \mathcal{H}^m(\{ f \neq g \} \cup \{ Df \neq Dg \} ) < \epsilon. \end{equation} This can be deduced from the Whitney extension theorem; you can find a proof in Leon Simon's lecture notes on GMT (Theorem 5.3, pp. 32-33).
In general you cannot find a $C^1$ function $g$Edit. It looks like I misread your question, sorry about that coincides with a Lipschitz $f$ almost everywhere. Here is a counterexample inhow to adapt the lowest dimension, where $m = n = 1$counterexample.
Let $C \subset [0,1]$ be a fat Cantor set. This is closed, has empty interior, and measure $\lambda := \mathcal{H}^1(C) \in (0,1)$. Define $f: x \mapsto \int_0^x \mathbf{1}_C$. This is $1$-Lipschitz and has $f(1) = \lambda$; moreover $f' = 0$ on the open complement $C^c$.
If $g$Now, if there were a $C^1$ function that coincidedan open set (along with their derivatives) with$U \subset [0,1]$ of full measure, and along which $f$ a.e.is $C^1$, then $g' = 0$ a.e. in $C^c$. By continuity of$f' = 0$ on $g'$$U$, this extends to $g' = 0$ in $C^c$. Asbecause $C$ has empty interior, this means that. But then on the one hand $g$ is constant$\int_{[0,1]} f' = \int_{[0,1] \cap U} f' = 0$, and cannot coincide withon the other hand $f$ a.e$\int_{[0,1]} f' = f(1) - f(0) > 0$; this is absurd.