Quantum symmetries induced by phonons in the Hubbard model