The Spin Alignment of Galaxies with the Large-scale Tidal Field in Hydrodynamic Simulations