Senate Democrats have struck a deal with Republicans and the White House to pass five spending bills to fund a large portion of the government for the remainder of the fiscal year, as well as a stopgap measure to fund the Department of Homeland Security for two weeks while they continue negotiating guardrails to rein in immigration agents.