A $40 million agreement between Quinn Emanuel and Longford Capital illustrates how law firms are seeking to make third-party finance more appealing to their clients.