Lawmakers are grappling with how to regulate the rapid pace of technological change without stifling innovation.