Morristown, N.Y., settles code violation dispute with Amish