7 They must no longer offer any of their sacrifices to the goat idolsa to whom they prostitute themselves. This is to be a lasting ordinance for them and for the generations to come.’

Read Leviticus 17:7 Using Other Translations

And they shall no more offer their sacrifices unto devils, after whom they have gone a whoring. This shall be a statute for ever unto them throughout their generations.
So they shall no more sacrifice their sacrifices to goat demons, after whom they whore. This shall be a statute forever for them throughout their generations.
The people must no longer be unfaithful to the LORD by offering sacrifices to the goat idols. This is a permanent law for them, to be observed from generation to generation.