Topological spin models in Rydberg lattices