The wife of Pakistan's imprisoned former prime minister Imran Khan is set to be released after a court granted her bail in a graft case.