The next stage of a 1,000-home development on the edge of Chippenham has been approved