Donald Trump welcomed Pedro Sánchez's defeat in Spain's election, while the People's Party and Vox appeared positioned to secure a parliamentary majority and reshape Madrid's relations with Washington.