Republicans and Democrats are pointing the finger at the other as the first government shutdown in more than six years seems almost certain to begin.