Controversial plans to build nearly 500 homes on a gasworks will be debated again after they were initially rejected.