The ruling is a major setback for the administration in the government's campaign against ABC and national media.