How the privileged legal status of marriage survived decades of constitutional struggle and social change