Combined full shape analysis of BOSS galaxies and eBOSS quasars using an iterative emulator