Senate Democrats and Republicans have voted on the first procedural step to end the longest government shutdown in U.S.