Senate Democrats on Thursday defeated a motion to proceed to a House-passed bill to reopen the Department of Homeland Security and end the 27-day shutdown that has hampered the functions…