President Trump is making a big new bet on a dangerous partner: Pakistan. His administration is relying on Islamabad as a behind-the-scenes player in Iran and Gaza diplomacy, even though Pakistan helped build Iran’s nuclear program and long backed jihadist groups that killed Americans.