I'd have let them call the LEO and then asked him to file charges against TSA agent #2 for harrasment and racism.
LEO's are trained in the law and are (usually) far more reasonable than the average TSA'hole; certainly the slicked-back-hair ones.
The LEO will also have to get a TSA supervisor over, and I suspect that the PHL management will hear that their terminals are now being patrolled by TSA. (Bet the PHL Police union would like to know about that).
The key point here: Get this stuff documented so it shows up on the charts and spreadsheets, etc. Say no to plausible deniability!
Too bad you were not in terminal E and hold a WorldClub membership. Then you could have bought the TSA off with free Powerbars!