What is the grammatical role of al-nisāʾu in ḥalla lahu al-nisāʾu?

Book of Hajj: Tawaf al-Ziyarah, Hajj Saʿi, and Second Release