British Prime Minister Boris Johnson said on Tuesday he would obey the law, when asked by a lawmaker if his government would abide by legislation blocking a no-deal Brexit.