Terrorism, immigration efforts hampered by Homeland Security vacancies