The Senate passed a law to fund the government for two years. The measure suspends the debt ceiling and allocates $80 billion to domestic and defense programs.