The government’s chief human resources agency issued a new rule on Thursday making it harder to fire thousands of federal employees, hoping to head off former President Donald Trump’s promises to radically remake the workforce along ideological lines if he wins back the White House in November.