The effect of spiral arm passages on the evolution of stellar clusters