The Senate has passed legislation to reopen the government, bringing the longest shutdown in history closer to an end after a small group of Democrats struck a deal with Republicans. The shutdown could last a few more days as members of the House, which has been on recess since mid-September, return to Washington to vote on the legislation.