Ripple's legal battle with the SEC has stretched on for years — with both parties obtaining key victories in the case.