Although one can derive the Hicksian demands by solving the expenditure minimisation problem, but the Leontief function is not differentiable at the 'kink', or at the 'point of optimality'. Thus one has to resort to simpler algebraic manipulations to find out the Hicksian demands.
Let $\textbf{p}\in\mathbb{R_{++}^2}$(that is both $p_1 \ \& \ p_2$ are $>0$). We know that for $U(x,y)=min\{x,y\}$, the optimal consumption bundle is at the point where $x=y$. Let the budget correspondence be $p_1x+p_2y\leq w$, where $w$ is the income level. Optimal consumption bundle occurs when all the income is used up. Thus, we have $p_1x+p_2x= w$ (since $x=y$ at point of optimality). This gives us the demand correspondences as $x(\textbf{p},w)=y(\textbf{p},w)=\frac{w}{p_1+p_2}$. Using the demands, we can find out the indirect utility as $v(\textbf{p},w)=U(x(\textbf{p},w),y(\textbf{p},w))=min\{\frac{w}{p_1+p_2},\frac{w}{p_1+p_2}\}=\frac{w}{p_1+p_2}$.
Next, we turn towards the duality principle,i.e; for a given level of utility, we have $v(\textbf{p},e(\textbf{p},u))=u$. Thus, we have $\frac{e(\textbf{p},u)}{p_1+p_2}=u$, or $e(\textbf{p},u)=u(p_1+p_2)$. Next, we appeal to the Shephard's Lemma,i.e; $\frac{\partial e(\textbf{p},u)}{\partial p_i}=h_i(\textbf{p},u)$. Notice that the expenditure function is differentiable in prices. Thus, we get $h_1(\textbf{p},u)=u$ and $h_2(\textbf{p},u)=u$.