Most of the debate going on in comments here is about selling to a hypothetical Iranian visiting the US.
But that's not what actually happened here -- the customer is a US citizen. I am pretty confident that it is Apple policy to sell equipment to US citizens in US stores regardless of their ancestry.