Sex offender can be an attorney: U.S. court