A federal judge certified a class of investors in litigation against Ripple Labs Inc. claiming that the cryptocurrency firm violated federal and state laws when it failed to register its XRP coin as a security.