Emerging bosons with three-body interactions from spin-1 atoms in optical lattices