A lawyer representing the social media giant in a copyright dispute with famous writers said he could no longer “in good conscience” keep working with the company.