Poland’s supreme court has ruled against a print shop employee who refused to print banners for an LGBT business group because he did not want to “promote” the gay rights movement.

The country’s top court said it was upholding the ruling of a lower court. The regional court in Lodz had argued the principle of equality before the law meant the printer did not have the right to withhold services from the LGBT Business Forum.

The case was brought to the supreme court by Zbigniew Ziobro, the justice minister and attorney general, who condemned Thursday’s ruling as “against freedom”.

“The supreme court has stood on the side of state violence in the service of the ideology of homosexual activists,” Ziobro said.

The Campaign Against Homophobia, which gave legal support to the LGBT Business Forum, welcomed the ruling.

The decision comes as the European Union has been warning that Poland’s judicial independence is under threat due to new laws that give the conservative ruling party, Law and Justice, greater power over court appointments.

A new law regulating the supreme court will take effect from 3 July and it is not clear if the court will be as free in the future to make rulings against positions supported by the government.

The Polish case comes as similar cases have been brought in US courts. In the most high-profile case, the US supreme court sided with a Colorado baker who refused to make a wedding cake for a same-sex couple.

Jarosław Jaruga, a lawyer with the Helsinki Foundation for Human Rights, said there were parallels to the US case.

He said the Polish supreme court ruled that sexual orientation, race or other features of a person could not be the basis for refusal to offer a service, but that if the nature of the service violated the entrepreneur’s freedom of conscience, it could be.

“Therefore, any such refusal should be considered individually. As a result, sometimes freedom of conscience and religion will be a legitimate reason for the refusal to perform the service, and at other times may constitute a manifestation of unauthorised discrimination,” Jaruga said.