Crypto legislation was on the verge of collapse, until a controversial compromise turned the tide. But at what cost?