It is permissible for the ruler to assist him from the Bayt al-Mal (public treasury) if he is poor and unable to fast, and it is valid for that person to spend the money of assistance on himself and on his family. If the zihar was for a fixed period, it ends only when that period ends.
The Prophet ﷺ ordered that Salamah bin Sakhr al-Bayadi (may Allah be pleased with him) be given dates from the charity, when he pleaded his hunger and poverty, and said to him:
فأطعم ستين مسكينا وكل أنت وعيالك بقيتها
“Feed sixty poor people, and eat from what remains yourself, and feed your family as well.”
[Hasan: Sahih Abi Dawud: 1933, Kitab al-Talaq: Chapter on Zihar, Abu Dawud: 2213, Tirmidhi: 3299, Darimi: 163/2]
Whether the period of zihar is fixed or not, the expiation is obligatory in every case, because the Book and the Sunnah command the expiation for zihar in absolute terms, and no such distinction exists anywhere.