Spain’s Prime Minister Mariano Rajoy held crisis talks with members of his cabinet on Thursday night, as he appeared almost certain to lose a no-confidence vote in Parliament.