NASA has started a major workforce restructuring effort, closing three departments and laying off 23 employees as part of the Trump administration’s push to shrink the federal government.