Islamabad court hearing was in response to a petition submitted by the former ISI chief against his travel ban