Outrage at the US, close ties with Venezuela and mounting domestic challenges have prompted Pedro Sánchez to take a stand, says the Spanish journalist Maria Ramirez