Public officials, including state legislators, have a duty to act impartially.