Judge Blocks Trump’s Order to End DACA

How can a court block a President from revoking a previous executive order? This is completely insane.