Also the reason this defence is valid for other works is that they are generally clean room reimplementations (eg of game engines) - often made long after the game is even available for sale.
The tool to run the game in this case, is almost certainly not that, even if they’re making comparisons to emulators and wine etc. It has been derived directly from the original work, and so you can reasonably assume that it does infringe
clean room implementations are to distribute or sell software that has the same functionality as copyrighted software. The github repo isn't trying to distribute software that has the same functionality. It doesn't have to be built in a clean room.
It is a compatibility layer, akin to WINE on linux (as described in the post). When writing WINE, you're allowed to try running windows .exe files to develop WINE further. That doesn't make WINE derivative of the windows files they're building compatibility with.