Pitting court against the coalition, justices to hear petitions against legislation seen as shielding Netanyahu from agreement that allowed him to serve after corruption indictment