After more than a month of stalemate, the U.S. Congress appears poised to end a government shutdown in the coming days.