A vote to shut down the government would have harmed the minority party more.