But Spain could still be downgraded