A growing chorus of states, from the United States to China, appears to be shifting away from Islamabad.