The president’s appearance at the game caused hours of security screenings for the thousands of fans hoping to get in the arena