He rewrote the dialogue for his cameo appearance, making his CIA character “quasi-obsessed” with Dwayne Johnson’s Luke Hobbs.