I’ve got a little list of Smallville episodes that are spooky but there are more than that too!
Maybe the Batman/Scooby-Doo crossover movie?
Technically since superheroes are great costumes for Halloween, I think you could really count any DC movie as acceptable for Halloween! But Batman has the spooky stuff so he’s always a good default.