[guided]We now prove that the $\mathfrak h$-component of the Jacobi expression also vanishes. First compute the first cyclic term. Since
\begin{align*}
[x_2,x_3]_{\rtimes}
=
\bigl([h_2,h_3]_{\mathfrak h}+D_2(h_3)-D_3(h_2),[k_2,k_3]_{\mathfrak k}\bigr),
\end{align*}
the definition of the semidirect bracket gives the $\mathfrak h$-component of $[x_1,[x_2,x_3]_{\rtimes}]_{\rtimes}$ as
\begin{align*}
&[h_1,[h_2,h_3]_{\mathfrak h}+D_2(h_3)-D_3(h_2)]_{\mathfrak h}
+D_1([h_2,h_3]_{\mathfrak h}+D_2(h_3)-D_3(h_2)) \\
&\qquad
-\rho([k_2,k_3]_{\mathfrak k})(h_1).
\end{align*}
The last term is where the homomorphism property of $\rho$ is used. Since $\rho([k_2,k_3]_{\mathfrak k})=[D_2,D_3]=D_2D_3-D_3D_2$, this expression becomes
\begin{align*}
&[h_1,[h_2,h_3]_{\mathfrak h}]_{\mathfrak h}
+[h_1,D_2(h_3)]_{\mathfrak h}
-[h_1,D_3(h_2)]_{\mathfrak h} \\
&\quad
+D_1([h_2,h_3]_{\mathfrak h})
+D_1D_2(h_3)-D_1D_3(h_2)
-D_2D_3(h_1)+D_3D_2(h_1).
\end{align*}
Now use that $D_1$ is a derivation of $\mathfrak h$:
\begin{align*}
D_1([h_2,h_3]_{\mathfrak h})
=
[D_1(h_2),h_3]_{\mathfrak h}
+[h_2,D_1(h_3)]_{\mathfrak h}.
\end{align*}
Thus the first cyclic term contributes
\begin{align*}
&[h_1,[h_2,h_3]_{\mathfrak h}]_{\mathfrak h}
+[h_1,D_2(h_3)]_{\mathfrak h}
-[h_1,D_3(h_2)]_{\mathfrak h} \\
&\quad
+[D_1(h_2),h_3]_{\mathfrak h}
+[h_2,D_1(h_3)]_{\mathfrak h}
+D_1D_2(h_3)-D_1D_3(h_2)-D_2D_3(h_1)+D_3D_2(h_1).
\end{align*}
We add the two cyclic analogues obtained by replacing $(1,2,3)$ with $(2,3,1)$ and $(3,1,2)$. Three different kinds of terms appear.
First, the pure $\mathfrak h$-bracket terms are
\begin{align*}
[h_1,[h_2,h_3]_{\mathfrak h}]_{\mathfrak h}
+[h_2,[h_3,h_1]_{\mathfrak h}]_{\mathfrak h}
+[h_3,[h_1,h_2]_{\mathfrak h}]_{\mathfrak h},
\end{align*}
and these vanish by the Jacobi identity in $\mathfrak h$.
Second, the terms containing one derivation and one $\mathfrak h$-bracket are
\begin{align*}
&[h_1,D_2(h_3)]_{\mathfrak h}-[h_1,D_3(h_2)]_{\mathfrak h}+[D_1(h_2),h_3]_{\mathfrak h}+[h_2,D_1(h_3)]_{\mathfrak h} \\
&\quad
+[h_2,D_3(h_1)]_{\mathfrak h}-[h_2,D_1(h_3)]_{\mathfrak h}+[D_2(h_3),h_1]_{\mathfrak h}+[h_3,D_2(h_1)]_{\mathfrak h} \\
&\quad
+[h_3,D_1(h_2)]_{\mathfrak h}-[h_3,D_2(h_1)]_{\mathfrak h}+[D_3(h_1),h_2]_{\mathfrak h}+[h_1,D_3(h_2)]_{\mathfrak h}.
\end{align*}
Now pair them explicitly. The sums
\begin{align*}
[h_1,D_2(h_3)]_{\mathfrak h}+[D_2(h_3),h_1]_{\mathfrak h},\qquad
[D_1(h_2),h_3]_{\mathfrak h}+[h_3,D_1(h_2)]_{\mathfrak h},
\end{align*}
and
\begin{align*}
[h_2,D_3(h_1)]_{\mathfrak h}+[D_3(h_1),h_2]_{\mathfrak h}
\end{align*}
vanish by skew-symmetry of $[\cdot,\cdot]_{\mathfrak h}$. The remaining three cancellations are literal opposite-sign cancellations:
\begin{align*}
-[h_1,D_3(h_2)]_{\mathfrak h}+[h_1,D_3(h_2)]_{\mathfrak h}=0,
\end{align*}
\begin{align*}
[h_2,D_1(h_3)]_{\mathfrak h}-[h_2,D_1(h_3)]_{\mathfrak h}=0,
\end{align*}
and
\begin{align*}
[h_3,D_2(h_1)]_{\mathfrak h}-[h_3,D_2(h_1)]_{\mathfrak h}=0.
\end{align*}
Third, the second-order derivation terms are
\begin{align*}
&D_1D_2(h_3)-D_1D_3(h_2)-D_2D_3(h_1)+D_3D_2(h_1) \\
&\quad
+D_2D_3(h_1)-D_2D_1(h_3)-D_3D_1(h_2)+D_1D_3(h_2) \\
&\quad
+D_3D_1(h_2)-D_3D_2(h_1)-D_1D_2(h_3)+D_2D_1(h_3).
\end{align*}
Each displayed term appears once with coefficient $1$ and once with coefficient $-1$, so their sum is $0$. Therefore the $\mathfrak h$-component of $J(x_1,x_2,x_3)$ is $0$.[/guided]