Some firms willing to stomach the risk are increasingly taking on business litigation and contract disputes with contingency fees.