In response to a tide of higher crime over the preceding decade, state and federal lawmakers passed measures that increased the length of prison sentences for all sorts of crimes, from drugs to murder.