Robustness of symmetry-protected topological states against time-periodic perturbations