Democrats warn against GOP’s ‘dismantling of government’ as judges strike down president’s mass purge of the workforce