On the spectral synthesis in the spaces of solutions of invariant differential equations