Congress passes bill to fund Capitol security, Afghan visas