They are justified by the wars, but they are not an effect of them, rather they are part and parcel of the kinds of policies that lead to both institutionalized sexual violence at home (which I think is a fair characterization of these searches) and imperial wars abroad.