A newly released survey found departments also are trying to save money by switching from large law firms to smaller ones, and by leveraging artificial intelligence.