An upcoming case in the high court’s next term may determine whether people in federal custody can seek legal remedy for violations of their constitutional rights.