Habitat to get $2 million from state share of mortgage settlement