MADRID—Spain's Constitutional Court on Wednesday blocked Catalonia’s regional parliament from moving toward independence, raising the stakes in a showdown between separatists and the central government.

The court, acting on a petition filed earlier in the day by Prime Minister Mariano Rajoy’s government, issued an injunction that bars Catalan officials from taking any steps to carry out a resolution that calls for a process of “democratic disconnection” from Spain.

...