At various points over the past two years, Internal Revenue Service officials targeted nonprofit groups that criticized the government and sought to educate Americans about the U.S. Constitution, according to documents in an audit conducted by the agency’s inspector general.