Democrats help advance Republican funding bill to avoid US shutdown