The British parliament is to hold a historic vote on the Brexit deal agreed with the EU and all sides are bracing for turmoil when the text is almost certainly rejected.