The rulings come as the Trump administration had demanded that government agencies submit plans for a second wave of mass layoffs and budget cuts this week.