Is the US using aid as a foreign policy tool?

The US government says it will withdraw $300m in military aid to Pakistan.