Accurately determining the transition temperature of metal halide perovskites via RPA calculations and phase-transferable machine learning potentials