UK lawmakers try to avoid no-deal Brexit