Parliament approves proposal designed to prevent possibility of no-deal departure from the EU on October 31.