The House and Senate passed a long-term spending deal early Friday, staving off the repeated short-term funding bills that have plagued Congress.