A defeat for Sánchez and his socialist party could bring down a long-serving European leader whose star power has risen among the global left for standing up to President Donald Trump.