Settlement will restore San Joaquin River