Court allows Dr Asim to leave Pakistan