Prime Minister Boris Johnson on Monday said he would obey the law but would still take Britain out of the European Union at the end of October with or without a deal.