Ripple Labs won a partial victory in court on Thursday as a federal judge ruled that some of its sales of the XRP token, which were challenged as securities violations by the Securities and Exchange Commission, did not fully meet the definition of a securities offering.