State tax filing

You are confused ... the income was NY sourced income  as a remote worker which means they get to tax you as a non resident.  Now since you live in IL they get to tax ALL your worldwide income on an IL resident return however you do get a credit for the taxes paid to NY on the same income.  Again complete the NY non resident return first and then the IL resident return so the credit will populate automatically.