McCarthy slams McConnell for working with Democrats on spending bill