The 2010 constitution requires that no more than two thirds of lawmakers should be men, a principle hailed at the time as a big step towards equality.
However the current male-dominated parliament has repeatedly rejected legislation to enforce this.
Four rights groups had petitioned the courts to compel parliament to enact such a law before a general election on August 8, saying there was a risk of a constitutional crisis.
High Court Judge John Mativo said that by failing to pass the required law, parliament was guilty of a "gross violation" of the constitution.
Also Read
He said that if parliament failed to enact the legislation within the stipulated time, "the petitioners or any other person shall be at liberty to petition the Honourable Chief Justice to advise the president to dissolve parliament."
The constitution gave parliament until August 2015 to enact the legislation, a deadline which was then extended by a year.
World leader Rwanda has 61.3 per cent of women in its lower house of parliament, followed by Ethiopia with 38 per cent, Burundi with 36 percent and South Sudan with 28 per cent, according to the Geneva-based International Parliamentary Union.
The improved showing of women in 2013 was largely due to another constitutional provision requiring that 47 "women representatives" be elected.
Kenyan analyst Nanjala Nyabola wrote recently that this had actually taken female politicians backward, as they were seen as only present to deal with women's issues rather than participating as "full parliamentarians".
"The constitution... Has been enforced, it has been brought alive in this judgement and we have been reminded as a people that this is the constitution we all aspired for," he told reporters after the hearing.
Disclaimer: No Business Standard Journalist was involved in creation of this content