CONCORD — By the narrowest of margins, the New Hampshire House of Representatives passed legislation to outlaw the practice of employing racial profiling in arrests along with sentencing practices.

Advocates said New Hampshire should join the 30 states that have their own laws that do not permit race to be a factor such as when police execute a traffic stop.