Cosmological Constraints from Cross-Correlation of Planck CMB lensing and DESI-like Emission-Line Galaxies in Legacy Surveys