Sen. Chuck Schumer of New York broke with his party Thursday and lined up enough Democrats to advance a Republican-written bill to keep federal funding flowing past a Friday night deadline.