SC allows military trials of civilians, suspends earlier ruling