Democrats largely voted against the bill to fund the Pentagon amid the shutdown. The vote came hours after a Senate bill to fund the entire government failed.
Unions representing federal workers said they expected the result would halt many of the layoffs that the administration had ordered or contemplated in recent days.