From what I gather Pakistan has never been a good ally to the US. Still they receive both military and humanitarian aid to the tune of billions each year.
And they were the ones sheltering Bin Laden and from what I can gather the ISI - Pakistani intelligence is the ones funding Taliban.
It strikes me as very strange that the US hasn't pressured Pakistan more over the years and that it has accepted this behavior all this time.