WASHINGTON (AP) — The Senate is expected to try quickly passing a measure Thursday that would fund most of the Department of Homeland Security, though it's unclear how soon the House will follow to largely end the longest partial government shutdown in history.

House Speaker Mike Johnson and Senate Majority Leader John Thune announced a plan Wednesday to fully fund the as part of a two-step process. The agreement puts the leaders on the same page for ending the impasse after they pursued separate plans that resulted in Congress leaving Washington last week without a fix.

The Associated Press