Senators are working through the weekend to end a 39-day government shutdown, but a deal hinges on a future health care vote that’s far from guaranteed.