Bill to stop no-deal Brexit passes with majority of one vote