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.
The point is women's proletarianization and emancipation didn't happen to increase profits of the capitalist class and it certainly wasn't granted to increase profits by paying them less in factories or wherever else. It happened because of changes in material condition due to industrialization and pressure from women to have equal part in their proletarianization. Wartime conditions made that more easily possible because interests of society, state and also preservation of capitalist order triumphed short term profit motives and found social support due to reality on the ground and "home front" but that's exactly why it didn't happen to increase profits.
It is true that capitalists conceded this to prevent revolution and indeed didn't even fully concede it since a large part of unpaid labor was and still is rested on women, such as housework and child rearing or has its costs burdened by public while its profits are taken by state such as food aid, maternity aid, child benefits and other forms of welfare. However these are not because capitalists included women in labor pool to increase their profits but to cut costs of women in labor pool. Khamenei is promoting a common and false idea that women in workplace reduced the wages in general and was a ploy by the capitalists or something similar. It wasn't and it wasn't a minimalist change either.
As for profit interest, it is always short term. That's also why destroying the planet might not seem realistic but it is ultimately what is happening. In case of women, industrialization and disenfranchisement of women destroyed women's livelihoods and created conditions that allowed complete entrapment of women in households where before they were participants in if not equal. It would both figuratively and literally destroy women but that was ultimately not acceptable to society or women. That's not because of any clemency or trick by the capitalists, the trick is making people believe women are allowed to work because capitalists made it possible.