The agency’s prestigious research office spent decades doing scientific work insulated from political pressure. Now it’s being dismantled.