LONDON—There was widespread relief at the underperformance of Spain’s far-right Vox party in last month’s general election. The center-right also failed to meet expectations, leaving no bloc easily able to form a government and the likelihood of a second election later this year.