Global existence and optimal time decay rates of 3D non-isentropic compressible Navier-Stokes-Allen-Cahn system