When a setting doesn’t seem to work, the first thing I want to know is what tmux thinks the value is. Your config file says one thing, the running server may say another.
tmux show -gv history-limit
show is short for show-options. -g asks for the global value and -v prints only the value, without the name, which is perfect for scripts. Without -v you get history-limit 2000.
Options live at different levels. Drop -g to see what the current session or window has set itself, and use -w for window options:
tmux show -w
tmux show -wgv mode-keys
A plain tmux show -w lists only what is set on this window, so an empty result means it simply inherits the global values. Add -A to include the inherited ones, marked with an asterisk.
A common reason for “my config is ignored” is that the server was started before you edited the file. tmux reads the config only when the server starts, so reload it with source-file or check the value with this command before assuming it is broken.
Further reading: tmux manual page (OpenBSD)