Sullivan legislators agree on ethics; Law will get public hearing