A lawsuit over a disputed stake in SpaceX shares could help determine how billions of dollars in private-market gains are divvied up before an IPO.