Chancellor gets unexpected popularity boost among Social Democrats after sacking finance minister