EIGER. II. First Spectroscopic Characterization of the Young Stars and Ionized Gas Associated with Strong Hβ and [O iii] Line Emission in Galaxies at z = 5–7 with JWST