How Photoinduced Gate Screening and Leakage Currents Dynamically Change the Fermi Level in 2D Materials