US government funding will cut off at midnight unless the Republican Party can agree with Democrats on a way forward.