Government does not endorse any behavior by virtue of the behavior being legal. Nor does it discourage it. And under the Establishment Clause, government is prohibited from even recognizing such a thing as "sin," since that is a religious concept outside the purview of the government - which is to say the government therefore cannot ban behavior thought to be "sinful."