For several hours Friday, in the stillness before dawn, the Senate appeared to have finally figured out how to fund most of the Department of Homeland Security ...