The executive order violated the First Amendment by discriminating and retaliating against the broadcasters, the court said.