The deadline to keep the government open will pass at midnight on Friday, but a bipartisan compromise could allow the House of Representatives to end the shutdown as early as Monday.