Not only is this blatant opportunism by Khamenei to excuse the rampant sexism that Iranian government embodies and seems to use both as a distraction from internal political failures and international pressure but it is also categorically wrong because women’s labor was not in effect something that capitalists entrepreneurs desired collectively to establish. Capitalist class benefits from unpaid labor in general because it reduces the monetization of economy outside of capitalist control which at all levels of chain of production reduces the value of labor. In effect, women entering work force increased labor costs because previously free labor started requiring expense from the pocket of labor which is factored into wage demands. This is something that capitalist class still tries to make into a public expense by socializing its costs to public programs, such as food aid, maternity benefits and other needs that companies still inadequately compensate their employees otherwise.
Khamenei is wrong on both accounts, the proletarianization of women didn’t happen on account of capitalist class for profit motive but due to state-level national interest that overrode profit driven structural changes that were happening within Western economies. Now of course capitalist class not only can and often did mobilize state for profit motive but rather outright prefers to utilize state for its interest but wartime conditions that threatens survival of capital class created a different equation in which self-preservation was enough of a pressure.
One cannot accept the suggestion that women only acquired rights on clemency of capitalists to benefit of capitalists. Because not only is it false and gives into the exact sort of tautology that Khamenei spouts here that appears correct but also lets all sorts of reactionaries make false arguments about role of women (and minors, minorities and all types of exploited groups). All sorts of worker liberation is against capitalist self-interest and are only conceded with enough pressure in which the other outcome is worse for their class interest.
Women’s liberation follows capitalism destroying the livelihood of women by uneven proletarianization that subjugated women to exploited labor for benefit of capital class, in which if profit interest was followed they would rather women be extinct which is obviously against the interest of women in question and functioning society in general as profit interest usually is. Women managed to acquire enough of a leverage to change this state of affairs due to pressure of wartime conditions that made women even more essential and made profit interest a temporarily secondary concern.