U. of Montana, Justice Dept. reach deal in sex assault investigation