Democrats could hold AG Barr in contempt of Congress. What is that and can it actually be used?

Democrats are set to vote Wednesday on whether to hold Attorney General William Barr in contempt of Congress, but what is that and could it actually help gain cooperation?