Pakistan’s high court dismissed on Monday the terrorism charges brought against Imran Khan, the country’s former prime minister, who appears to have escaped the latest of legal challenges brought against him since he was ousted from power last month.