An end to the longest US government shutdown in history is one step closer.