The government retaliated against the A.I. start-up “for constitutionally protected expressive activities,” a federal judge in California wrote.