In July , it was transferred to Washington , D.C. with the rest of the VI Corps to defeat Lt. Gen. Jubal Early 's attack on the city .