The Senate advanced a bill to fund most of the Department of Homeland Security to end a shutdown affecting TSA and air travel.