Topological properties of a coupled spin-photon system induced by damping