The unrest underlines the intensity of domestic discontent, even as Tehran’s government grapples with the threat of U.S.