A standoff over taxes and spending sent Minnesota hurtling Thursday toward a midnight government shutdown that could force thousands of layoffs, bring road projects to a standstill and close state parks to campers just before the Fourth of July weekend.