The committee approved an ethics code for the court on a party-line vote, though it is unlikely to become law.