You tend to ignore the fact that foreign policy is not dictated by one person alone. Yes the secretary has a lot of say, but not ALL the say in these matters. The decision to have those countries as strategic allies is a country-level decision. The sale of weapons etc. is a result of that decision.