A federal appeals court on Friday blocked more sections of a tough Alabama immigration law, including that schools had to check whether students were in the United States legally or not. But it kept intact powers handed to the police to detain people suspected of being illegal immigrants.