State of Idaho settles ACLU lawsuit over anti-sodomy law, use of sex offender registry