Judge orders end to ‘torture’ at Iowa detention facility for boys