McCain was publicly skeptical about the Republican strategy that precipitated the U.S. federal government shutdown of 2013 and U.S. debt-ceiling crisis of 2013 in order to defund or delay the Affordable Care Act; in October 2013 he voted in favor of the Continuing Appropriations Act, 2014, which resolved them and said, "Republicans have to understand we have lost this battle, as I predicted weeks ago, that we would not be able to win because we were demanding something that was not achievable." Similarly, he was one of nine Republican senators who voted for the Bipartisan Budget Act of 2013 at the end of the year. By early 2014, McCain's apostasies were enough that the Arizona Republican Party formally censured him for having what they saw as a liberal record that had been "disastrous and harmful". McCain remained stridently opposed to many aspects of Obama's foreign policy, however, and in June 2014, following major gains by the Islamic State in Iraq and the Levant in the 2014 Northern Iraq offensive, decried what he saw as a U.S. failure to protect its past gains in Iraq and called on the president's entire national security team to resign. McCain said, "Could all this have been avoided?... The answer is absolutely yes. If I sound angry it's because I am angry."