Praise be to Allah.
It is permissible to use these pills if they do not cause harm to the woman; that may be known by consulting a specialized doctor.
The Standing Committee for Issuing Fatwas was asked about this matter, and they replied:
It is permissible for a woman to use pills to delay her period at the time of Hajj if she fears she may get her period, but that is only after consulting a specialized doctor to make sure that this will not affect her health. She may do likewise in Ramadaan if she wants to fast with the people.
Fataawa al-Jaami’ah li’l-Mar’ah al-Muslimah, 2/495.