The president said the bases named for rebel generals “have become part of a Great American heritage”.