Government, army chief set for legal battle