U.S. District Judge Paul Maloney granted an injunction to Steve Tennes, saying the city of East Lansing likely violated his religious and free speech rights.

Tennes had been a popular apple dealer at the city-run market until officials learned he doesn’t allow gay couples to get married at his Eaton County farm because of his religious beliefs. He expressed his views on Facebook last year and wasn’t invited back this season.

Maloney noted that East Lansing became aware of Tennes’ position and changed its rules to require vendors to comply with the city’s civil rights ordinance, which bars discrimination. The orchard is 22 miles away in another county.