Last month the constitutional court said the move to lift the existing headscarf ban violated the secular constitution.
Since the 1960s, more than 20 parties - mostly pro-Islamist or pro-Kurdish - have been shut down by the courts for allegedly posing a threat to Turkey's secularist principles.
However, this is the first time that a closure case has been brought against a governing party with a huge parliamentary majority.
EU officials expressed some relief at the court's ruling on Wednesday.
"It is positive. Turkey is living a tense situation and we very much hope that the decision by the court will contribute to restore political stability," said Cristina Gallach, spokeswoman for EU foreign policy chief Javier Solana, quoted by Reuters.
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.