Britain published legislation Thursday to sever political, financial and legal ties with the European Union, an important step towards Brexit but one which the opposition said it would challenge.