Court rules against man who claims state gun carry laws are unconstitutional