UK finance minister optimistic over deal with Labour on Brexit