NBC: Senate passes bill to avoid a government shutdown, ending funding fight at the 11th hour