In Oshikawa's flux threading argument for the $\mathrm{U}(1)\times T$ Lieb-Schultz-Mattis (LSM) theorem, the author defined a so-called large gauge transformation $$U=\exp\left(i\frac{2\pi}{L}\sum_{\mathbf{r}} x_\mathbf{r} n_\mathbf{r} \right) \tag{1}$$ where $L$ is the number of sites in the $x$-direction, the sum is over all lattice sites $\mathbf{r}$, $x_\mathbf{r}$ is the $x$-coordinate and $n_\mathbf{r}$ is number operator at $\mathbf{r}$ (note that the argument is independent of particle statistics). Assume periodic boundary condition in $x$. Also assume the ground state is gapped and no spontanous symmetry breaking occurs. First, a $\mathrm{U}(1$) flux of $2\pi$ is adiabatically embeded in the system. The Hamiltonian is changed from $H(\Phi=0)$ to $H(\Phi=2\pi)$, even though the spectrum is unchaged. The author then argued that $$UH(\Phi=2\pi)U^{-1}=H(\Phi=0), \tag{2}$$ i.e. $U$ transforms the twisted Hamiltonian back to itself.
How does one justify eqn. (2) for a generic $\mathrm{U}(1)$ and translation symmetric form of $H(\Phi)$? Also, can someone give a non-trivial example to demonstrate this?