Some people in the crowd chanted “lock him up” as the president appeared on video screens in the stadium.