The US Senate passed legislation early Friday to fund most of the Department of Homeland Security, forging a path to end a lengthy partial government shutdown that snarled airport security and threatened to ripple through an economy already roiled by …

