Search for Tensor, Vector, and Scalar Polarizations in the Stochastic Gravitational-Wave Background