Imane Khalif is not male, she's a women, born a women, with Swyer Syndrome, otherwise known as 46 XY gonadal dysgenesis. Women with Swyer syndrome are XY, but are women. They usually have fully functional uterus, fallopian tubes, and vagine. Their gonads (ovaries or testes) are not functional. These gonads are called streak gonads and are made up of scar tissue and little gonadal tissue.
With a donor egg and in-vitro, women with Swyer syndrome can carry a pregnancy and give birth to healthy babies, even twins.
They're women.