Senate votes to advance plan to end 40-day government shutdown.