The legislation would create a cause of action in state courts to sue an agent of the state of New Hampshire, or any of its political subdivisions, including police officers, for a violation of a right under the laws or constitution of New Hampshire or the United States Constitution.