The legislation would fund parts of the government ahead of a Jan. 30 deadline in a bipartisan breakthrough after the nation’s longest shutdown.