High redshift JWST predictions from IllustrisTNG: III. Infrared luminosity functions, obscured star formation and dust temperature of high-redshift galaxies