President Trump and his allies have berated Washington, D.C., officials. Yet the federal government has often made it harder for those officials to manage the capital.