Tehran’s increasingly vulnerable position in the region has energized opposition activists and spurred hardliners to endorse the pursuit of nuclear weapons.