Cosmological puzzle resolved by stellar feedback in high redshift galaxies