British parliament to have final say over Brexit deal