families identified by the agencies as having a lack of adequate housing that is a primary factor—
(A) in the imminent placement of a child in foster care; or
(B) in preventing the discharge of a child from foster care and reunification with his or her family; and