It requires editing a game data file, and it does not always work.
Navigate to your installation folder — typically Program Files, then The Creative Assembly, then Rome - Total War, then the data folder. Open descr_sm_factions, find the section for the slave faction, locate custom_battle_availability and change no to yes, then save.
According to most accounts that unlocks the Rebels in Custom Battle. In practice, some users get an "Access denied" message on save, usually a permissions issue — running your editor as an administrator often resolves it.
Back up the original file before you touch it. A malformed entry will stop the game launching, and the fix is simply restoring the copy you made.