writ of habeas corpus requiring a person to be brought before a judge or other official before they can be imprisioned