Although Qatar’s Boeing 747 gift to the United States was nominally free, the plane must be refitted to serve as the presidential aircraft—a process that could cost nearly $1 billion.