The ruling party was expected to win, but the opposition boycotted it and protesters disrupted voting, meaning the election has not been completed.
The vote was unconstitutional because it did not take place on the same day across the country, the court said.