Republicans’ two-step continuing resolution to fund the government in phases passed with the help of Democrats.