The House of Lords approved legislation to stop a no-deal Brexit after agreeing to push the bill through by the end of day on Friday.