Legal firms face tension over AI