A federal judge in Newark, New Jersey, has dismissed a First Amendment retaliation suit by a university lecturer whose contract was not renewed after the New York Times reported that he was part of the alt-right movement.