US Senate takes first step to ending longest closure by advancing funding bill