Does passing wind from the anus affect ritual purity?
Ablution is nullified by the passing of wind from the anus, but washing the anus is not required as wind leaves no impurity.
What is the ruling on wiping the head during ablution from behind a barrier like a headscarf (hijab)?
The obligation in ablution is to wipe some of the head; it is not a condition to wipe all of it. As for one who has a turban or headscarf on their head, it is permissible for them to wipe over it after wiping a part of their head in any place. This is easily done at the front of the head. This means the woman begins by wiping the front of her head from under the headscarf, then completes the wiping to the back of the head from over the headscarf. If the woman wipes over the headscarf on her head and the moisture reaches the scalp or some hair within the boundaries of the head, it suffices for wiping the head. And Allah the Almighty knows best.
What is the ruling on one who sees moisture on his clothes and doubts whether it is semen or pre-seminal fluid (madhy)?
Whoever finds moisture upon waking from sleep and doubts whether it is semen or madhy, and cannot distinguish between them, he may choose between them and act according to his choice. If he wishes, he can consider it semen and perform the ritual bath, or consider it madhy, perform ablution, and wash what it has soiled. This is because if he fulfills the requirement of one of them, he is definitively free from it, and the default is his innocence from the other. And Allah the Almighty knows best.
Is it permissible to purchase the Udhiyah on installments?
It is permissible to purchase the sacrificial animal (uḍḥiyyah) on installments or by borrowing its price. However, it is not recommended for the poor to do so, because they are not required to offer a sacrifice, and Allah does not burden a soul beyond its capacity. If doing so would lead to negligence in providing for one's dependents (nafaqah wājibah), then giving precedence to obligatory maintenance over borrowing to buy the sacrifice is appropriate. This is based on the saying of the Prophet (peace and blessings be upon him): "It is sufficient sin for a person to withhold food from those whom he is responsible to support."
Furthermore, the sacrifice is valid from one who has a debt, but it is preferable (awlā) to repay the debt first, especially if the debt is due immediately (ḥāll). And Allah Almighty knows best.