Lawyers to probe law on clawing back NHS costs