Securities and Exchange Commission Chair Gary Gensler took some heat from lawmakers over the agency’s approach to regulating cryptocurrency.