Court blocks Pentagon restrictions