The agreement ends a two-year legal fight over whether the former talk show host could consent to filming “Where Is ...