Westfield narrowly approved plans for a 55+ housing community on the city’s west side — after debate on tree preservation and development density.