Dallas council member violated ethics code for saying woman