Billionaires such as Elon Musk are hating on Spain’s prime minister, Pedro Sánchez. He must be doing something right.