Boris Johnson, the favorite to become the next British prime minister, promised on Monday to take Britain out of the European Union on Oct. 31, with or without a deal.