The change has exposed rifts in the governing coalition between the Socialist party and Podemos.