How Democrats turned the tables in the funding fight as the GOP falls to pieces