Hours after Knesset amends Basic Law to enable Shas leader's appointment despite suspended sentence, lobby group obtains court order requiring incoming government to explain move