Commissioners approved acquiring a building that will shelter homeless families.