Mashīʾah means that what Allah wills to occur does occur, while what He does not will does not occur. The actual occurrence of human actions remains within His will.
A person chooses obedience or disobedience; the choosing is ascribed to that person. Yet no action comes into existence independently in defiance of Allah's encompassing will.
The effectiveness of divine will and the human act of choosing are distinct but compatible affirmations.