Separatist parties which hold a slim majority backed the referendum law and legal framework needed to set up an independent state.
Prime Minister Mariano Rajoy has asked the constitutional court to nullify it. He will hold an emergency cabinet meeting on Thursday and meet other party leaders.