Legislation proposed to block the UK from leaving the EU without an agreement has been slammed as irresponsible by the foreign secretary