Court ruling preserves North Nashville Habitat project