After threatening to resign over X, Spanish prime minister Sanchez declares he will ’continue on