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.