Nintendo has secured $4.5 million in a lawsuit targeting the sale of pirated Switch games and hardware.