Federal court hears appeal of Minnesota sex offender ruling