I haven't looked at Nintendo's materials, but I would think they were able to find enough evidence to get them past any preliminary dismissal motions, and get to discovery in which case Nintendo would likely get access to all communications and electronic files (read: source code).
I think Nintendo would be banking that the Yuzu team likely had lax (if at anything) policies and processes for compliance to their public stance on piracy.