With fewer than 300 lawyers, Wachtell racked up bumper profits and exercised outsize influence. Now its model is being challenged as never before