It is entirely possible for something to be consistent with the 1st Amendment, but still wrong & inappropriate for the government to do.
Then that becomes a matter for the people to decide through their representatives in the legislature or through public pressure. It is not the role of the courts.