Ill law passed to allows dogs in court