The suggested way to share the hadith does not break the fast with the intention of narrating from the Imam (peace be upon him) what is mentioned in the book.
It is permissible to seek intercession from Imam Ali (peace be upon him) by the said words as well as other words. Although the mentioned phrases were not reported to us via an Imam, they are famous lines of poetry.
The time in the said marriage is the right of the husband and only he can forgo it. But it is permissible for the wife to make a condition in the contract that she acts on his behalf in this matter. She can then forgo the remaining time.