Pak-US ties have withstood vagaries of time: PM