The Texas Senate on Wednesday voted 19-12 to pass a bill that gives attorneys a new defense in lawyer discipline cases.