It's funny to me that the average American is Islamophobic, but the US government sharply divides middle eastern countries based on alliances (and how rich they are). Qatari Emir? You're a friend of the US government. Poor Pakistani? Enemy. Lebanese farmer? We'll think about it.
Only as long as they are outside the US. As soon as they are in the US a Qatari is just a muslim and considered dangerous.
It makes sense given a few things, although it's not as bad as you're saying: 1. The median American lives in a city and has exposure to Muslims and is most likely not Islamophobic. 2. Due to the voting structure of the U.S., people who don't live in cities and don't get exposure to Muslims get outsized voting rights. 3. Most American electeds are much more well travelled than Americans who don't live in cities.
So basically, elites have to necessarily balance (and exploit) the biases of over-represented minorities with their own largely metropolitan beliefs.
All of this is made more ironic in that the moral structures of the Abrahamic religions, including Islam, are all influences on and in line with, traditional American values, which American elites don't follow (see Epstein) but Americans who don't live in cities largely do.