Shas departs over failure to enshrine ultraorthodox military exemption but says it will not work to topple administration