City officials said the two decisions reflect a broader effort to expand housing options while limiting high-traffic commercial uses near residential areas.