Optimism for avoiding a shutdown is on the rise — but the clock is ticking.