Once plagued by cost overruns that helped to undermine its nonprofit developer, a 50-unit affordable apartment complex in Tamalpais Valley is now on more stable ground, housing officials said Monday.