Up to 180 homes will be built as planning inspector allows appeal