Prime Minister Mariano Rajoy is heading for defeat in a no-confidence vote in the Spanish Parliament as opposition parties line up against him.