Retiring state lawmaker is appointed as Utah insurance commissioner