After House Republicans pushed through a measure to avert a shutdown, Democrats blocked it in the Senate, demanding more than $1 trillion for health programs.