These guys may very well have been from Customs or some other agency. I didn't look closely enough and will freely admit that whenever I encounter any nuisance or inconvenience at US airports, my mind goes to TSA first.
Regardless, thanks for the insights on this thread. This sucks but at least now I know why it's being done for next time.