The impact of cosmic rays on dynamical balance and disk-halo interaction in L⋆ disk galaxies