The State House voted 66 to 27 on Tuesday to reject a repeal of the state’s unconstitutional anti-sodomy law. The bill by State Representative Patricia Smith, a Democrat, sought to remove consensual sex between people of the same sex from Louisiana’s crimes against nature law. The United States Supreme Court threw out a similar Texas law a decade ago. State Representative Valarie Hodges, a Republican, opposed the measure, saying the law protects children and upholds morality. Opponents of the repeal said it would remove minors’ protection from aggravated crimes against nature. Ms. Smith said at least 12 other statutes protect minors from sexual assault. She brought the bill after Baton Rouge-area police officers arrested gay men using the law but could not charge them because the district attorney said it was unenforceable.