The ruling accused the Trump administration of engaging in censorship by taking down materials at parks across the country.