A union representing federal workers filed a lawsuit challenging President Trump’s ability to fire government employees.