From Maimonides, Mishnah Torah, Laws of Gifts to the Poor, chapter 7:1, 3.
It is a positive commandment to give tzedakah (charity) to the poor according to what is fitting for that poor person…
According to what that person is lacking, you are commanded to give to him: If he has no clothing, you clothe him. If he has no utensils, you purchase them for him. If he has no wife, you find him a wife. If it is a woman, you find her a husband. Even if it was the way of this poor person to ride on a horse while a servant runs before him. If he has lost money (and become poor), one buys him a horse and servant to attend to him. As it is written: “But you shall open your hand wide to him, and shall surely lend him sufficient for his need, in that which he lacks.” (Deuteronomy 15:8).
Maimonides describes the importance of giving people what they specifically need.