It’s not like companies can just not open up offices in states whose laws they don’t like, no one is debating that they can’t do that. As for remote positions, it gets trickier: if the state has laws that have scope beyond the state if the company employs a resident, does the company still have a right to avoid employing in that state for positions that do not have fixed office locations? EOE just means you don’t discriminate along some protected classes, employers can still discriminate for legitimate reasons (degree status, citizenship status, work experience, criminal record, etc…).
The courts might have to work out whether state residency is a protected class or not.