The court found that none of the reasons the state gave for blocking an entire group of potential foster parents were justifiable.