Is the one offering the sacrifice liable if its meat spoils?
Praise be to Allah, and prayers and peace be upon our Master the Messenger of Allah.
If the meat (of the sacrifice) spoils due to the negligence of the one offering the sacrifice in preserving it, or due to improper storage, then he is liable to compensate for the portion due to the poor (which is estimated as half a kilogram of meat). If the sacrifice was a vowed (mandatory) one, then he is liable for all of it.
However, if he was not negligent, then there is no liability upon him, because its ruling is the ruling of a trust (like an item left in someone's care). And Allah Almighty knows best.
What is the ruling on performing istinja' after passing wind from the anus?
Ablution is invalidated by passing wind from the anus, even without a smell. Only ablution becomes obligatory from it. Istinja' is not obligatory nor recommended. And Allah the Almighty knows best.
What is the ruling on someone who eats or drinks thinking that the sun has set, then realizes that it has not yet set?
Whoever eats or drinks believing that the sun has set, then later discovers that it has not yet set, their fast is invalid, and they must make up that day after Ramadan. It is not permissible to break the fast before confirming sunset—either by seeing it, through personal reasoning, or by relying on the statement of someone trustworthy in their religious commitment.
Does buying meat equivalent to the weight of a slaughtered animal and distributing it avail for an udhiyah?
Praise be to Allah, and prayers and peace be upon our Master the Messenger of Allah.
That does not avail for the sacrifice (uḍḥiyyah), because the sacrifice necessarily requires slaughtering an animal from the category of anʿām (camels, cattle, and sheep/goats) within a specified time.
Rather, that is considered a form of charity (ṣadaqah) for which one is rewarded. And Allah Almighty knows best.