TD Bank and Delaware North, the owner of TD Garden, said Thursday they’ve agreed to a 20-year naming rights extension.