Horse ordinance is approved by town meeting