WASHINGTON—The Justice Department’s inspector general is expected to conclude there was a proper legal basis for the government’s application to monitor a former Trump campaign foreign-policy adviser, but that errors and lapses in judgment were made during the process, according to people familiar with the matter.

Among the findings identified in the report is that an FBI lawyer altered an email related to the surveillance of a former Trump campaign adviser, people familiar with the matter said Friday. The conduct didn’t change...