On J. Humphreys' book "Representations of Semisimple Lie Algebras in the BGG Category O", Theorem 3.6, a Tensor Identity is quoted:
$$ (U(\mathfrak{g}) \otimes _{U(\mathfrak{b})} L) \otimes M\simeq U(\mathfrak{g}) \otimes _{U(\mathfrak{b})} (L \otimes M)$$
where $L$ is a $U(\mathfrak{b})$-module and $M$ is a $U(\mathfrak{g})$-module.
While this isomorphism seems clear as a $k$-module isomorphism, it doesn't seem to be a $U(\mathfrak{g})$-module homomorphism.
Apparently, an element $x\in \mathfrak{g}$ should act on the left module by $$ x\cdot (y\otimes a \otimes b) = xy\otimes a \otimes b + y\otimes a \otimes xb $$ while it acts on the right by $$ x\cdot (y\otimes a \otimes b) = xy\otimes a \otimes b $$
Am I misunderstanding sometihng?
Let $\Gamma$ be a sub-Hopf algebra of the Hopf algebra $\Lambda$. Let $M$ be a $\Lambda$-module and $N$ a $\Gamma$-module. Then $$ \Lambda \otimes _\Gamma (N \otimes M|_\Gamma) \cong (\Lambda \otimes_\Gamma N) \otimes M.$$ The isomorphism is given by $$ \lambda \otimes_\Gamma (n\otimes m) \mapsto \sum (\lambda_{(1)} \otimes _\Gamma n) \otimes \lambda_{(2)} m.$$
I'm using Sweedler notation here: $\Delta(\lambda) = \sum \lambda_{(1)} \otimes \lambda_{(2)}$ where $\Delta$ is the comultiplication.
Note that this does agree with Jyrki's map in the group case, for then $\Delta(g)=g\otimes g$ for $g$ a group element.
In your case, $\Delta(x) = x\otimes 1 + 1 \otimes x$ for $x \in \mathfrak{g}$. You can use that to get an explicit expression for the isomorphism, for example it sends $$ x \otimes (n \otimes m) \mapsto (x\otimes m) \otimes n + (1\otimes n) \otimes xm $$ for $x \in \mathfrak{g}$.
The inverse map is given by $$ (\lambda \otimes_\Gamma n)\otimes m \mapsto \sum \lambda_{(1)} \otimes_\Gamma (n \otimes S(\lambda_{(2)}) m) $$ where $S$ is the antipode of $\Lambda$ (in your case, $S$ is the antihomomorphism defined by $S(x)=-x$ for $x \in \mathfrak{g}$).