Her resignation follows a federal injunction against mass layoffs, signaling deep disruption to the bureau’s enforcement mission.