THE IMPACT OF BARYON PHYSICS ON THE STRUCTURE OF HIGH-REDSHIFT GALAXIES