Egypt is considering a new constitution that will ban religion-based political parties, reverting to the type of restrictions imposed under Hosni Mubarak and now viewed by authorities as critical for stability after the military’s removal of an Islamist government sparked weeks of violence.