The improbable, 200-year-old story of one of America’s first same-sex ‘marriages’