Evolution of magnetic structure driven by synthetic spin-orbit coupling in a two-component Bose-Hubbard model