Pakistan, Taliban have legititmate grievances: US