Second phase of Halbeath housing approved despite opposition