The Brexit mess traces its roots to another political crisis in the 19th century