Legal department spending shot up last year—with departments at the median seeing a 23% spike, to $3.8 million.