After a series of failed negotiations, Senate majority leader Harry Reid, a Democrat, worked with the minority leader Mitch McConnell to draft legislation to re-open the government and extend the debt ceiling.
The bill extends the Treasury's borrowing authority until 7 February, and funds the government to 15 January.