Judge’s order halts Trump administration efforts to rewrite history