Jeremy Corbyn says Labour will back an election once a no-deal Brexit is ruled out in law