Plans for 256 homes in Boroughbridge approved at second attempt