That's a punch and easy flagrant foul/flagrant two/punching foul. Batum said he did that because the Spanish team was flopping/embellishing the entire game. The final straw was probably a couple of plays earlier where Ronnie Turiaf was called for an unsportsmanlike foul where in reality, the Spanish player just threw his legs under himself and fell to the ground quite easily. A soccer player would have been proud.
Still, no excuse for that kind of play and easy disqualification/ejection.