Pakistani officials have aggressively courted the Trump administration and made use of their longstanding ties to Iran.