The deal would address concerns Democrats have had about funding the Department of Homeland Security because of enforcement actions in Minnesota.