A guardian was someone who watched over a child and enforced the parents’ rules so that the child would obey them.
"so that God might justify us" or "so that God would declare us to be righteous"