States are recognizing the ecological benefits of ripping out dams and reconnecting rivers.