British lawmakers on Tuesday voted in favor of a proposal calling on the government to rule out leaving the European Union without a deal.