Israeli parliament speaker, a Netanyahu ally, resigns in clash with Supreme Court