Halide perovskites enable polaritonic XY spin Hamiltonian at room temperature