US Congress averts Homeland Security shutdown