How Trump’s agenda met a wall of judicial resistance