US Congress reaches spending deal