As the nation’s largest employer, the federal government has been more welcoming to Black workers than the private sector.