Officials in the city comptroller’s office spotted the unprecedented grab at congressionally approved funds that were already in the city’s bank accounts.