SCUBA-2 Ultra Deep Imaging EAO Survey (STUDIES). IV. Spatial Clustering and Halo Masses of Submillimeter Galaxies