Egypt set for emergency rule after church attacks