The court expressed doubt regarding the argument that the ban constitutes unconstitutional discrimination.
Similar laws have been passed in at least 24 other states, and many of them have faced legal challenges in court.
Contribution by The Associated Press.