Donald Trump wants us to buy arms - in exchange he is ready to call Pakistan names. He also wants fewer H1Bs for domestic political reasons. As long as you are buying from the Donald, he is a friend.
Case in point, Saddam and Gaddafi were friends with Uncle Sam as long as they were buying American stuff.
On the other hand, we get to buy oil from Arab nations and send labourers to earn foreign exchange - in return we have to pat the Palestinians from time to time.
All of these make good business sense.