HoopTransformer: Advancing NBA Offensive Play Recognition with Self-Supervised Learning from Player Trajectories