President Trump has faced legal challenges from unions representing federal workers for his push to strip them of labor protections.