A ruling by a state judge could force Colts Neck to approve three high-density housing developments, including 171 affordable housing units.