The Barnstable County Assembly of Delegates approved a home rule petition to allow towns to place a transaction fee on pricey real estate sales.