Throughout the history of our Republic (and while the various original states were colonies) there were many laws against the practice of sodomy - in most colonies, and then states, sodomy was punishable by death. Same sex sodomy was usually more severely punishable, at least according to the laws I've read. I have no idea how often anyone was arrested or punished.
Up until this summer, quite a few states had laws against same sex sodomy. The SCOTUS in its ignorance, did away with the right of individual states to govern themselves regarding same sex acts.
The term often used historically and legally for same sex acts was "crime against nature".
Any more questions?