The Pakistani government will challenge an order to move former prime minister Imran Khan from prison to a private hospital.