A strict, airport-style gauntlet of security was in place as Trump became the first sitting U.S. president to attend the NBA Finals.