This meant Pakistan had little choice but to return the United States’ embrace, despite the lack of enthusiasm on either side.