A top Spanish court sentenced the former treasurer of the country’s ruling party to jail for his role in a kickback scheme and fined the party, a milestone in a long-running corruption saga that deals a blow to Prime Minister Mariano Rajoy’s already unsteady hold on power.