The New York-based law firm Pryor Cashman can’t avoid a malpractice lawsuit by relying on language in an assignment-of-rights agreement that the firm itself drafted for the client.