Acutually, that’s not entirely accurate. The use of female altar servers had nothing to do with Vatican II. In fact, it began in the 1980s, about 20-years after the revision of the Code of Canon Law in 1983. It was written into the Code by Pope Paul VI in 1978 and promulgated by Pope John Paul II in 1983. The Code makes provision for female altar servers, without denying the fact that having male altar servers has always been a means for young boys and teens to be closer to priests and hopefully be inspired to discern the priesthood. In other words, the canon recognizes the value of having male altar servers.
That being said, the canons also make it quite clear that being an altar boy is not part of the journey to Holy Orders. It is a ministry, not an order. The canons make provisions for permanent acolytes. These must be males. But they are not in orders either, because in the Roman Church, the order of acolyte was suppressed by Pope Paul VI.
As to the EMHC, the canons do not say that they must be male. The canons do specify how and when they should be used. It is true that there is often an over use. The conons do not use the word emergency, either. But EMHC are not part of the OP.
Fraternally,
Br. JR, OSF