Lawmakers voted to take control from Johnson's government, making it possible for a no-deal Brexit to be outlawed.