what does it mean when you use "作“ as a measure word for people?
It's not a measure word. It means act as; be.

作丈夫的 could be translated literally as The people who act as husband, or just The husband.