The budget bill failed in the Senate Tuesday night by just two votes after the two sides appeared to have worked out a compromise.